Change default role names
By default, the application comes with two connection roles named “ROLE_USER” and “ROLE_ADMIN”. Any OpenKM user must be assigned one of these roles to log in.
Change the default roles
Section titled “Change the default roles”Edit the openkm.properties file
Section titled “Edit the openkm.properties file”default.user.role=NEW_ROLE_USER_NAMEdefault.admin.role=NEW_ROLE_ADMIN_NAMEUpdate default roles to new names in the database
Section titled “Update default roles to new names in the database”- Go to Administration > Tools > Database query
-- Update security tableUPDATE OKM_NODE_ROLE_PERMISSION SET NRP_ROLE='NEW_ROLE_USER_NAME' WHERE NRP_ROLE='ROLE_USER';UPDATE OKM_NODE_ROLE_PERMISSION SET NRP_ROLE='NEW_ROLE_ADMIN_NAME' WHERE NRP_ROLE='ROLE_ADMIN';
-- Insert new rolesINSERT INTO OKM_ROLE (ROL_ID, ROL_ACTIVE) VALUES ('NEW_ROLE_USER_NAME', 'T');INSERT INTO OKM_ROLE (ROL_ID, ROL_ACTIVE) VALUES ('NEW_ROLE_ADMIN_NAME', 'T');
-- Update user rolesUPDATE OKM_USER_ROLE SET UR_ROLE='NEW_ROLE_USER_NAME' WHERE UR_ROLE='ROLE_USER';UPDATE OKM_USER_ROLE SET UR_ROLE='NEW_ROLE_ADMIN_NAME' WHERE UR_ROLE='ROLE_ADMIN';
-- Remove older rolesDELETE FROM OKM_ROLE WHERE ROL_ID IN ('ROLE_USER', 'ROLE_ADMIN');- Restart the OpenKM service
- Go to Administration > Tools > Lucene indexes > Rebuild indexes