Is there a way to differentiate ServiceNow OOTB role and Custom roles?

Vivek81
Tera Contributor

I know that both ServiceNow OOTB role and a custom role created by user is stored in the sys_user_role. Is there a way to differentiate if a given role is ServiceNow OOTB role or if it is custom role?

Thanks.

2 REPLIES 2

OlaN
Giga Sage
Giga Sage

Hi,

That depends.

If you have some sort of way to differentiate who created the role you might be able to sort them out.

For instance if all your instance specific users have a sign in like name.lastname@yourdomain.com you can filter out roles where created by contains "@yourdomain.com" to find which roles are custom made, and which ones are not.

 

Just by filtering roles where created by is "admin" , "system" and "glide.maint" will get most OOB records, not all, but most of them.

Steven Parker
Giga Sage

If I were trying to do this, I would add the Created By column on the sys_user_role table list view, then right click on the "Created By" header and click "Group by Created By".

 

Since we only have so many people here that can create custom roles, it would be easy to tell by the name of the Created By person whether it was a custom role or not.


Please mark this response as correct and/or helpful if it assisted you with your question.
Steven