Report to show users from a specific group that have itil role

Staxed
Giga Guru

I've been playing with this for a while now and can't find a way to do this.

 

I would like to create a report that shows all users with the itil role from a specific set of groups.  I've tried sys_user, sys_user_has_role and sys_group_has_role and can't seem to get exactly what I'm looking for.  Is something like this going to require a database view (never done one before).

 

Any suggestions/advice on how to accomplish this would be awesome.

1 ACCEPTED SOLUTION

Normally ITIL roles come from the groups, perhaps try this:

ITIL.PNG

View solution in original post

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

@Staxed 

you will require database view for this and join sys_user, sys_user_has_role, sys_user_grmember table

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

Hemanth M1
Giga Sage
Giga Sage

Hi @Staxed ,

 

Create database view as below :

HemanthM1_0-1687447040755.png

and report with this condition and group by group:

HemanthM1_1-1687447126308.png

 

Mark correct if it helps.

 

Thank you,

Hemanth

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

Do not use this. This database view and report will not generate the desired results. Since the where clause is based off of the user, if a user has multiple groups with different roles it will generate an inaccurate report adding the sum of these group's roles.

Eddie5
Tera Contributor

Hi Everyone,

 

You can join two tables as below screenshot and create a Database view to report on Users who have ITIL role along with their respective assignment groups that they are part of.

 

Eddie5_0-1719749925398.png

Mark This as Helpful if this answers your query.