Roles Renaming

avatar

Hello,

by renaming a Role, that had already Users and Security settings linked to folders / entries/ credentials - ALL assignments must be re-executed. In the properties from the specified entry is only the old Roles name listed, not the new - so no security is for the new name available.

Tested on RDM Version 12.5.8.0 & 12.5.10.0 on a SQL Datasource

Thanks!

Regards,
Min

All Comments (6)

avatar

Hi,
I think that we would have to show a warning. It's not simple to rename a role with all the related impact.

Regards

David Hervieux

avatar

Hi David,

I see with Get-RDMRole that a Name and a Role Property exists. When renaming a Role in a normal case it is enough to change only the display name. Is the setting from the roles to the folders /credentials linked with the name attribute or role attribute? The ID attribute can`t be - then the settings would not be loosed?

Thanks! :)
Regards,
Min

avatar

I will have to verify but if I remember correctly we link the role with the name and not the ID.

David Hervieux

avatar

Thanks for the investigation!

Maybe it would make sense to link it to the ID - because they can`t be changed - I think renaming a role is not so rarely. ;)

Best Regards,
Min

avatar

David,

I thought about it and if the link change from name to id is too complicated or to extensive, what do you think about this idea:

Do not change the link and instead run a sql statemanet that search for the old role name and replace it with the new name. Would this be possible or more importantly would this work and make it sense?

If yes, a notice / warning in the GUI & Powershell would be nice that points to the sql statemant that must to be running after a role name change.
Thank you!

Regards,
Min

avatar

Again,
This is not as simple as it sounds since most of the time the data in the database is encrypted.

Regards

David Hervieux