Making a Catalog variable only visible to a certain group.

James174
Tera Contributor

I am looking for help with a solution to a requirement. I need to make a catalog variable only visible to members of a specific group due to it containing sensitive data. The client does not want me creating new roles (I originally achieved this by using the permissions section on variable tabs and creating a new role for that group).

 

Any help with a solution and or script (if that is the solution) would be appreciated thanks

1 REPLY 1

Zach Koch
Giga Sage
Giga Sage

You will need a client script with a GlideAjax to check if the user is in the group or not, and then hide the variable if not. Here is a link to an example that should help you. You'll need to tweak it slightly to hide the variable rather than show a message.

Example of GlideAjax 

 

If this information helped resolve your issue, please remember to mark response correct and thumbs up to help future community members on this information, thanks!