Creating a Subscription Table Report with Different Last Login Criteria Based on Subscription Type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2023 06:52 AM
Hello ServiceNow Community,
I Am looking to create a report in the "license_details" subscription table, and I need it to display users' last login times based on their subscription type. Specifically:
- For subscription types labeled as "Approvers," I want the report to show users' last login times for up to the past 6 months.
- For subscription types labeled as "Fulfillers," the report should display users' last login times for up to the past 3 months.
Could someone please guide me on how to set up this report to achieve these specific criteria? Any assistance or suggestions would be greatly appreciated.
Thank you in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2023 11:33 AM
interesting question which cannot be answered easily as the data for it is spread over different tables.
And basically there are two approaches:
The first one is following the roles a user has and via table license_role you could find out which type a user is. The problem with that approach is, that a user can have roles from different types (by the way: there is no "Approver" type anymore, it's now called "Business stakeholder") and also there is no relation to the subscriptions the instance is assigned to.
Therefore I prefer the second approach. At first you have to identify the right subscription (product) you are referring to. Go to table license_details_item and enable column "Product Code":
Take the code you want to refer in the following report. Whether the purchased licenses are of type "Fulfiller" or not depends on the product. For example for CSM and FSM all licenses are of type "Fulfiller". That's the reason why there is another subscription for "Business Stakeholders" because a large number of users perform only restricted activities as a kind of approver.
With that code you could create a report on table ua_app_usage which is the real treasure for you:
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2023 04:49 AM
hello @Maik Skoddow thanks for you answer here is another version of what i need exactly if you can help me that will be nice thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2023 05:04 AM
you only say "thanks for your answer" without letting me know whether my answer was helpful/correct or not, and at the same time you point me to another questions of yours?
Really?
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2023 05:12 AM
hi @Maik Skoddow sorry but your answer is not what i need that's why i point you to another question where i have explained the problem in details.