- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-29-2016 12:10 PM
Regarding User Criteria on the Service Catalog. Is the API that ServiceNow uses to validate that the current user is entitled to view and order the catalog item accessible via server-side scripting? If so, is there any documentation on it?
I have wrote an application that allows automated Catalog Requests to be requested via a scripted web service. However, using an user account that would normally be prevented from requesting said Catalog Item through the UI is able to order any Catalog Item.
I'd rather not reinvent the wheel with my own validation if the out-of-the-box validation is accessible.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-29-2016 12:21 PM
Hi Nick,
I think this will evaluate user criteria:
GlideappCatalogItem.get('catalog item sys_id').canView();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-29-2016 12:21 PM
Hi Nick,
I think this will evaluate user criteria:
GlideappCatalogItem.get('catalog item sys_id').canView();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-29-2016 06:12 PM
It's not documented, but I was on a call with some Servicenow Reps complaining about the lack of a search API and I had come up with the same thing that b-radcame up with. They seemed content that it will work with SN's Ritm access rules/user criteria/etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2016 05:06 AM
Thank you Brad, this did the trick!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2016 12:21 AM
Hi Brad,
do I understand it correct - GlideappCatalogItem.get('catalog item sys_id').canView() will evaluate the Catalog Item's User Criteria against logged-in User?
I just dont see where I can pass the user as parameter.
Yevgeniy