Advanced User Criteria for Catalog Item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2026 08:16 AM
Trying to create an advance script for some catalog items to where it is available for users with customer Boolean field u_is_a_manage is true. It has yet to work for me. Is there something wrong with my script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2026 08:27 AM
Hello @mgraden ,
answer();
function answer() {
var user = new GlideRecord('sys_user');
if (user.get(gs.getUserID())) {
return user.getValue('u_is_a_manager') == '1';
}
return false;
}
Test it by opening User record and make sure u_is_a_manager = true (checked). Now Impersonate that user and open Service Catalog and test.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2026 09:00 AM
