
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2016 02:44 AM
Based on the official wiki page, a User Criteria record may contain a specific set of users, groups, roles, departments ....
My question is, do I have to do manual checking for the user against user criteria, something like:
- check if the user exists in user criteria users list
- then if the previous test failed, check if the user role exists in user criteria roles list
- then if the previous test failed, check for departments .... and so on
Or is there something out of the box in snow that carries out these checks for me? I guess there should be some way but I can't find any thing relevant in the official wiki or docs
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2016 05:50 AM
One of my colleagues passed this along a few weeks ago. It's worth a try.
SNC.UserCriteriaLoader.getAllUserCriteria()
Returns an array of sys_ids of the user criteria available to you. (applies to user's current login session.)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2016 05:50 AM
One of my colleagues passed this along a few weeks ago. It's worth a try.
SNC.UserCriteriaLoader.getAllUserCriteria()
Returns an array of sys_ids of the user criteria available to you. (applies to user's current login session.)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2016 06:21 AM
thanks chuck, it works as expected

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2020 03:48 AM
Hi Chuck,
Based on the question, this API works but we are evaluating all the UCs, whereas we only want to evaluate only 1.
So I feel we are unnecessarily evaluating all UC, so if I want to use this script in run-time it may take quite some time. Whereas we want only 1 UC to be evaluated.
Regards,
Swarnadeep Nandy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2022 03:24 AM
Hi Swarnadeep,
Did you find any solution on this?