Remove the inherited roles from the user

NeethuB
Tera Contributor

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.

9 REPLIES 9

it is not happening

 

@NeethuB 

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! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

YES

kaushal_snow
Giga Sage

@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.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/

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.