User Criteria API for Catalog Item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 02:50 AM
Hi Everyone,
We have a requirement where we need to get user criteria being applied for specified user for a specified catalog item, through script.
Problem statement:
- We have a third party tool which sends user’s email ID and catalog item to ServiceNow.
- On basis of this, we need to check if user satisfies the criteria of that catalog item & can view/access the catalog item. Accordingly, we need to send response through scripted REST API.
Analysis Pointers:
- There is a plugin “User Criteria Scoped API” that has methods to get user criteria. This is a paid plugin and we do not intend to activate it.
- ServiceNow has utility of “User Criteria Diagnostics” (Navigate to Service Catalog > Catalog Administration > User Criteria Diagnostics) which checks if given user meets the criteria available for given catalog item. We tried to search that UI Page (uc_item_diagnostics.do) but no luck. We suppose that the UI Page is not visible.
Is there any way we can achieve this without having to write any code?
Any help on this would be appreciated.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 02:56 AM
Hi Sandesh,
for restricting catalog items based on role, group, location, etc or Script you require User Criteria
You can activate the Service Portal User Criteria Support plugin (com.glide.service-portal.user-criteria) if you have the admin role.
Please check with your company's ServiceNow Account manager once for price before activation.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 03:02 AM
Hello Ankur,
Thank you for your response.
Before enabling the plugin we are checking if there are any other ways to achieve this like user criteria diagnostics.
Regards
Sandesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 03:09 AM
Hi Sandesh,
user criteria diagnostics is just used to check if user criteria is working fine or not.
For troubleshooting purpose.
Let me know if I have answered your question.
If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 03:16 AM
Hello,
PFB links which may answer your questions
https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/product/managed-documents/reference/r_ApprovalProcess.html
https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/administer/service-administration/concept/c_ProcessApprovals.html
https://hi.service-now.com/kb_view.do?sysparm_article=KB0786248
Thank you