How to restrict service catalog for VIP user

shilpa344
Giga Expert

I wanted to restrict the visibility of one particular catalog for all VIP users of a particular domain. Please help.

8 REPLIES 8

ghsrikanth
Tera Guru

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.


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?


Query business rule could be the solution if ACL modification and role customization is not recommanded


Mihir Mohanta
Kilo Sage

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