Hide a Role

akshay jadhav
Tera Contributor

Hello All,

We no longer want to use the HRSD module. Initially, our requirement was to uninstall the HRSD module, but since uninstalling is not possible, we have deactivated the all HRSD module. Now, we also want to hide all HRSD roles from the roles table, as well as prevent these roles from appearing in the slushbucket during role assignment to user.

We noticed that there is a "Delete" option available on the role records. We would like to know : is deleting the roles the correct approach? Could it cause any unintended impact elsewhere in the system? What would be the recommended solution for addressing our concern?

Thank you

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@akshay jadhav Instead of deleting the roles, I recommend creating a query business rule on sys_user_role table to filter all the roles related to HR. You can also achieve this by creating a read ACL on sys_user_role table check for role in condition and give access to these roles if they an elevated role (e.g. admin).

 

Hope this answers your question.

View solution in original post

7 REPLIES 7

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

If you are no longer using the roles or the plugin then i don't see an issue in deleting them.

Before you delete make sure that these roles don't inherit a role that will impact negatively users that have this role. 

Also make sure you take this role away form users before deleting it.

 

 

-Anurag

Hello Anurag,
Thanks for reply,
I came across information on Google stating that missing roles in an instance could potentially cause errors during an upgrade.

It might but you essentially are not using that role.

The only other way would be what Sandeep Suggested but it will be a lot of processing as that query would run a lot, each time a role is added to any user.

-Anurag

Yes, you are right, but it has to be done that way; otherwise, the instance will always generate error records after an upgrade.