Ir al contenido
Otras versiones

Cargando…

Creating users from scripts

Esta página aún no está disponible en tu idioma.

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");