Notifications

105 views

Description


Customer would like to know which User Criteria record allows access of a catalog item to a logged-in user.

Procedure


1.There's a M2M relationship table between User Criteria and Catalog item: sc_cat_item_user_criteria_mtom

2.In the community discussion, there's a thread talking about the following function to return an array of sys_ids of user criteria available to the current logged-in session: SNC.UserCriteriaLoader.getAllUserCriteria()

https://community.servicenow.com/community?id=community_question&sys_id=bc15836ddbd8dbc01dcaf3231f96190b&view_source=searchResult

3.There's a scoped API named: UserCriteriaLoader, which enables you to get the user criteria associated with a specific user

https://docs.servicenow.com/bundle/london-application-development/page/app-store/dev_portal/API_reference/UserCriteriaLoaderScoped/concept/UserCriteriaLoaderScoped.html

Applicable Versions


London

 

Article Information

Last Updated:2019-05-21 11:50:41
Published:2019-01-17