Hide Catalogue Variables Based on Role

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2012 01:54 AM
Hi,
I was just wondering if there is a way to hide catalogue variables based on role.
On most catalogue items, I have a field where the user must select a amanger to approve the request. However if the user has the "approver" role. They do not need to do this.
Is anyone able to advise on this. I have tried using a UI policy where you select the caller.id.role = approver but this is still not working.
Any Ideas?
Thanks
Dan
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-08-2016 02:08 PM
Hello,
Thanks for the input Deep.
I tried the below code and it worked completely fine for a variable ( u_internal_external ).
if ((!g_user.hasRole("snc_external"))){
g_form.setDisplay('u_internal_external', false);
}
Thanks