How to delete inherited roles in user profile

Emeley
Giga Contributor

I have deleted all the groups and roles from a user profile. I am still seeing few roles which are showing as Inherited-true and I am not able to see those roles in related list.

I tried to delete them in sys_user_has_role table but still no luck. Delete button is diabled in the table.

Can anyone help me in deleting the inherited roles of the respective user

4 REPLIES 4

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

To remove the inherited role you should remove the Parent role, that would remove the inherited role by itself.

Its just one user so Its better to do this manually and not using script.

-Anurag

If I delete the parent role will that not effect all the users who has that role ?

Hi Anurag, I have a same requirement so I need to run this trough a scheduled job.

Scenario:

If the role ITIL is inherited from another role ex: Demo123(Demo123 contains ITIL), so I need to remove role Demo123 from user so that ITIL also will remove from user. how to do this?

HI,

Scenario: If ITIL inherits Demo role

The, if you need user to keep ITIL but remove demo role then that would be a challenge. If you need user to loose ITIL as well as demo then its easy. You just take away the ITIL role.

 

 

What you should do is,

  • Remove Demo role form ITIL. 
  • Create 2 groups, One contains ITIL Only , and Another Contains ITIL + Demo Role.
  • Assign users to groups based on what roles they need.
-Anurag