User Criteria not working!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2022 06:32 AM
Hi Team,
I have build a user criteria to restrict my catalog items for germany users.
So, below is the screenshot of my user criteria
]
When i check for logs, sometimes working and sometimes not and all users are able to view the catalog item.
even though i mapped this user criteria in not availability column.
There is nothing in available column.
Can someone please help me how to fix this?
Thanks,
Sri

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2022 06:33 AM
Hi,
Image not visible.
Reattach.
Regards,
Sumanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2022 06:35 AM
Hi Sumanth,
Thanks for the response.
I have now reattached.
Please check and help!
Thanks,
Sri

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2022 06:49 AM
Can you try this
checkCondition();
function checkCondition(){
var user = new GlideRecord('sys_user');
user.get(gs.getUserID());
if (user.location.country == "USA")
{
return true;
}
return false;
}
And also to debug it :
Navigate to "User Criteria Diagnostics" from left navigator.
Mark as correct and helpful if it solved your query.
Regards,
Sumanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-03-2022 06:55 AM
Still no luck!
Thanks,
Sri