Remove the inherited roles from the user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday
Hi I want to remove a users inherited role. I have already removed the user from all the group and checked the role tab which is showing empty. Can you pls help me on this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday
it is not happening
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday
none of the inherited roles are removed?
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday
YES
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday
@NeethuB ,
In this case that means the roles have been granted via some parent relationship (such as a group or another role) and you cannot simply delete them from the user record, you must first remove the parent assignment (e.g., the group or role that granted them)........If you cannot identify the parent relationship, another approach is to go into the table sys_user_has_role filter for that user, export the records, edit the XML to change <inherited>true</inherited> to <inherited>false</inherited>, import back and then delete the record.....Before doing any direct manipulation of data you should check whether you’re working on a production or non production instance and ensure you have a backup, because making changes to inherited role records can have broader effects on permissions and audit compliance......
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thursday
We have tried this steps but having some denied error message . We have both admin and security admin role still cant able to import the changes in xml.
