Creating users from scripts
The script allows you to create users and assign them the user role.
Download file create-users_okm.xlsx
import com.openkm.api.*;
OKMAuth.getInstance().createUser(null, "newId","newPassword", "newMail@mail.com","New Real Name", true);OKMAuth.getInstance().assignRole(null, "user1", "ROLE_USER");