Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Need to connect three tables to fetch a report to get user who utilised licenses?

Prasanna13
Tera Contributor

I need to create an report to fetch the number of people whose role type is fulfiller who is having CSM license. Here there are three tables involved. License_role, sys_user and sys_user_has_role. I have created a report with user table. But how to link user table with other two tables and get the Desired result of users who is having license. Anyone can help?

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Prasanna13 

Did you check the Subcontract Management for this? That will provide you with more accurate data.

 

https://www.servicenow.com/community/developer-forum/how-to-pull-a-report-of-users-having-fulfiller-...

 

https://www.servicenow.com/community/developer-forum/find-people-that-have-a-fulfiller-licence-but-a...

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@Prasanna13 

You will require 4 tables the 4th one is sys_user_role

the field "User Role" on license_role table refers to sys_user_role table

There is already 1 OOTB database view for this, did you check that

AnkurBawiskar_0-1761571598939.png

 

💡 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

@Prasanna13 

Hope you are doing good.

Did my reply answer your question?

💡 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