- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2025 04:36 AM
Hello,
Can someone know how to restrict catalog item visibility? catalog item must be only visible specifically for users with authorization level 3 and above. I already created a user criteria and attached it in my catalog item but it is still not working.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2025 08:11 AM
please share your user criteria and script
Ensure you add that in "Available For" Related list of your catalog item
Script something like this, but please enhance
var userRec = new GlideRecord('sys_user');
userRec.addQuery('sys_id', user_id);
userRec.addQuery('u_authorization_leve', '3'); // give your proper query here
userRec.query();
answer = userRec.hasNext();
You can also test this using User Criteria Diagnostics
Debug user criteria of a catalog item
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2025 12:40 AM
this help thanks man