Database view to identify users who is actively utilizing ITIL license
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2025 12:12 AM
I need to do database join on syslog_transaction, sys_user & sys_user_has_role tables to find out the users who are actively using ITIL licenses in servicenow.
This is my join and I'm strugging to do it. Can anyone help here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2025 01:22 AM
Hi @Vikram3
First thing, syslog_transaction table is a huge(size) table, creating data base view on this table may impact performance.
Still if you want to build db view, please go through the below prod doc to get good understanding on db view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2025 03:24 AM
Hi @Vikram3
What do you mean by "actively using"? You can go to the role table and search for ITIL. In that table, you'll find the users assigned to that role. You can also set a condition in the user table, such as "last login within the past 2-3 days," to identify who is actively using it or not
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2025 04:52 AM
Hi @Dr Atul G- LNG I can do with last login but users who has snc_internal role can login to the portal for raising requests which will show false values if I use it.
My requirement is I wanted to identify the users who is actively using the ITIL licenses viz., creating incidents, requests, problems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2025 04:55 AM
Hi @Vikram3
Users with the snc_internal role are considered END USERS. According to the Out-Of-The-Box (OOTB) setup, no role other than snc_user is required to log an incident through the portal. So, there’s no need to worry about this.
As suggested by @AndersBGS look into this table as well - sys_user_has_lincense
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]
****************************************************************************************************************