How to restrict service catalog for VIP user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2016 03:33 AM
I wanted to restrict the visibility of one particular catalog for all VIP users of a particular domain. Please help.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2016 03:34 AM
You can create a new role called VIP user role and assign all the users to the role
And through the role the visibility of the catalog item can be controlled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2016 03:37 AM
Thanks Srikanth for the reply but unfortunately client is not allowing us to create any new role. Is there any other way I can achieve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2016 04:05 AM
Query business rule could be the solution if ACL modification and role customization is not recommanded
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2016 04:16 AM
1.You need to create a User Criteria in the Service catalog module.
Click advanced check box and write script like:
checkVIPUsers();
function checkVIPUsers(){
var returnflag = false;
var urerref = new GlideRecord('sys_user');
urerref.get(gs.getUserID());
if(urerref.vip=='false'){
returnflag = true;
}
return returnflag;
}
2.Open the catalog item in maintain items.
3.In the Available for related list, add the user criteria you have created previously.
Thanks,
Mihir