- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 01:37 AM
Hello,
We recently imported user records from one instance to other. Due to this import Roles associated to users also got imported
We want to remove roles associated to user records and option not available
We checked option not available on 'sys_user_has_role' table to delete these records
Is there any way to remove/delete these roles from user record ?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 02:04 AM
Hi @Shridhar1 ,
The challenge here is that the roles are inherited. So you can't delete them directly through a script as well.
You first need to set inherited as 'false' and then perform the delete action using a background script.
You can do both in the same script execution.
Refer below:
Please mark this as helpful/correct for others to benefit from this.
Thanks,
Aishwarya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 01:45 AM - edited 11-01-2022 01:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 01:48 AM
Yes I have admin access, still no option to remove these records
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 02:12 AM
Hi Sridhar1,
Look for the role that other roles that you want to remove is member of. For example if you add itil role to any user he will get 18 more roles alnog with it that are contained by itil. Now you can't remove selective role from there. Once you remove itil those extra role that you see will automatically remove.
So see adding which role added those roles. You will get remove role option for that role only.
I hope this helps,
Regards,
Kamlesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2022 02:16 AM
One role that I can see youare trying to remove comes from below roles, now to remove that you will have to remove below role only
Regards,
Kamlesh