• Create BULK users in OpenKM

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
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.
 #46475  by jllort
 
If I understood, you are looking for a quick way for creating users ( 100 or more ). With or without roles ?
 #46490  by jllort
 
In that case I suggest 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
You can easily convert excel column as scripting.
 #46513  by jllort
 
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 )

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.