User Criteria API for Catalog Item

sandesh10
Tera Contributor

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.

5 REPLIES 5

Shivani Singh1
Tera Guru

Hi Sandesh,

You are right that User Criteria Diagnostic page for catalog item is not traceable. But I found a script include which returns the result for User Criteria evaluation

Script Include : UserCriteriaDiagnosticsUtil

I hope it helps a bit if explored properly.