Page 1 of 1

Rename role

PostPosted:Mon Sep 23, 2013 2:05 pm
by maxcus
Hello,
I can not find how to rename a role. From the role window I can only activate or deactivate a role. Is possible to rename a role?

My OpenKM version: 5.1.9

Thanks
Massimo.

Re: Rename role

PostPosted:Tue Sep 24, 2013 5:45 pm
by jllort
In version 5.1.9 is not possible rename a role. You could make partial rename, but is not good idea, because will not take effect on repository security only on role name. We suggest upgrade to version 6.2.4 because 5.1.9 is very old.

Re: Rename role

PostPosted:Tue Oct 01, 2013 9:53 am
by maxcus
Thanks jlort,
but also in version 6.2.4 I can not rename a role.
Did I miss something?

Regards
Massimo

Re: Rename role

PostPosted:Wed Oct 02, 2013 8:54 pm
by jllort
In version 6.2.4 could be done but is not an automatic procedure should make as administrator level. Steps should be done are:
We will supose you want to rename ROLE_X to ROLE_Y
1- create role Y -> Administration / Roles / create role
2- execute in database query:
Code: Select all
update OKM_USER_ROLE set UR_ROLE = 'ROLE_Y' where UR_ROLE = 'ROLE_X';
delete from OKM_ROLE where ROL_ID='ROLE_Y';
update OKM_NODE_ROLE_PERMISSION set NRP_ROLE='ROLE_Y' where NRP_ROLE='ROLE_X';
3- Go to Administration / Utilies / Rebuild indexes. Select lucene indexes and then click execute. ( That will propagate security in across search engine, can take several minutes, meanwhile is under execution repository will go to read only mode, do not worry, after process will be completed come back to normality ).

Tell us if has been solved your problem.