How can I create bulk users upto 100 in OpenKM panel ?
Is there any database script for that?
Create BULK users in OpenKM
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
-
- Junior Boarder
- Posts: 24
- Joined: Mon Feb 26, 2018 7:37 am
- Location: INDIA
- Contact:
-
- Moderator
- Posts: 10455
- Joined: Fri Dec 21, 2007 11:23 am
- Location: Sineu - ( Illes Balears ) - Spain
- Contact:
Re: Create BULK users in OpenKM
If I understood, you are looking for a quick way for creating users ( 100 or more ). With or without roles ?
-
- Junior Boarder
- Posts: 24
- Joined: Mon Feb 26, 2018 7:37 am
- Location: INDIA
- Contact:
Re: Create BULK users in OpenKM
yes, creating 100 users with roles
-
- Moderator
- Posts: 10455
- Joined: Fri Dec 21, 2007 11:23 am
- Location: Sineu - ( Illes Balears ) - Spain
- Contact:
Re: Create BULK users in OpenKM
In that case I suggest scripting
You can easily convert excel column as scripting.
Code: Select all
import com.openkm.api;
OKMAuth.getInstance().createUser(null, "userId", "password", "test@openkm.com", "User Name", true); // repeat the line for each user
OKMAuth.getInstance().assignRole(null, "userId", "ROLE_TEST"); // repeat the line for each role you wish to assign to the user
-
- Junior Boarder
- Posts: 24
- Joined: Mon Feb 26, 2018 7:37 am
- Location: INDIA
- Contact:
Re: Create BULK users in OpenKM
Will this need a text file or excel as input ?
(bash scripting)
(bash scripting)
-
- Moderator
- Posts: 10455
- Joined: Fri Dec 21, 2007 11:23 am
- Location: Sineu - ( Illes Balears ) - Spain
- Contact:
Re: Create BULK users in OpenKM
You can write the script manually with copy & paste or as I suggested create an XLS file -> export to CSV -> edit file and remove tabs, etc... -> you get the script ( where each row of the file is the insert )
-
- Junior Boarder
- Posts: 24
- Joined: Mon Feb 26, 2018 7:37 am
- Location: INDIA
- Contact:
Re: Create BULK users in OpenKM
Thanks !!
Who is online
Users browsing this forum: No registered users and 7 guests