Is there a way to create the list of Roles that are directly assigned to users using ServiceNow?

ayano
Giga Guru

Is there a way to centrally check the list of Roles that are directly assigned to users using ServiceNow?

Now I'm opening each user to see the Direct Role.

Is it possible to display a table-like list in Direct Role?

I want to create a list of Roles that are assigned directly to an individual rather than being assigned by a group.

6 REPLIES 6

Jaspal Singh
Mega Patron
Mega Patron

You need to create a Database view as below

find_real_file.png

 

Once done you need to create a report as below. Table as created in step 1 above.

find_real_file.png

Dear @Jaspal Singh 

 

But wouldn't it be easier to filter sys_user_has_role by inherited = false?

What am I missing?

 

Best

Daniel


If this answer was helpful, I would appreciate if you marked it as such - thanks!

Best
Daniel

Thanks Daniel, this works perfectly

Musab Rasheed
Tera Sage
Tera Sage

Hello @ayano ,

You can make use of 'sys_user_has_role' table and group by either 'role' or 'user' field. Mark my answer as correct if that helps.

find_real_file.png

Please hit like and mark my response as correct if that helps
Regards,
Musab