Catalog UI Policy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello,
I am setting up new Catalog Item that allows users to request software to be checked by Infosec staff so that they can check on privacy settings and so on. I have some varibales/questions that are visible to the user and some that need to be on visible to the Infosec member of staff. How do I acheive this via a Catalog UI Policy?
David
- Labels:
-
Request Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @davidsmith,
it would be easier to achieve this by Catalog Client Script rather than Catalog UI Policy Action(s)..
You can refer to this g_user:
hasRole(String role, Boolean includeDefaults)
role | String | Role to check. |
includeDefaults | Boolean | Optional. Flag that indicates whether to include default roles, such as snc_internal and snc_external, in the request. For additional information on roles, see Exploring user administration. Default: false |
Boolean | Returns true if the current user has the specified role or the admin role; otherwise returns false. |
Example
var isInternal = g_user.hasRole('snc_internal', true);
Example
var isItil = g_user.hasRole('itil');
hasRoleExactly(String role, Boolean includeDefaults)
includeDefaults | Boolean | Optional. Flag that indicates whether to include default roles, such as snc_internal and snc_external, in the request. For additional information on roles, see Default: false |
role | String | Role to check. |
Boolean | Returns true if the current user has the specified role. |
Example
var isInternal = g_user.hasRoleExactly('snc_internal', true);
Example
var isItil = g_user.hasRoleExactly('itil');
hasRoleFromList(String roles, Boolean includeDefaults)
roles | String | Comma-separated list of roles to check |
includeDefaults | Boolean | Optional. Flag that indicates whether to include default roles, such as snc_internal and snc_external, in the request. For additional information on roles, see Exploring user administration. Default: false |
Boolean | Returns true if the current user has a role in the list or the admin role. |
Example
var isOK = g_user.hasRoleFromList("itil, maint");
Example
var isOK = g_user.hasRoleFromList("itil, maint, snc_internal", true);
hasRoles(Boolean includeDefaults)
includeDefaults | Boolean | Optional. Flag that indicates whether to include default roles, such as snc_internal and snc_external, in the request. For additional information on roles, see Exploring user administration. Default: false |
Boolean | Returns true if the current user has at least one role. |
Example
var yesRole = g_user.hasRoles();
Example
var yesRole = g_user.hasRoles(true);
/* If my response wasnāt a total disaster āļø ā drop a Kudos or Accept as Solution ā āļø Cheers! */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi @davidsmith, have you had chance to review my answer above?
Please let me know how does it sound to you, please don't ghost my free time efforts :))
/* If my response wasnāt a total disaster āļø ā drop a Kudos or Accept as Solution ā āļø Cheers! */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi @GlideFather Thank you for your help on this. It does make sense to me but I just need time to implement and test.
Kind regards
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @davidsmith,
any feedback?
/* If my response wasnāt a total disaster āļø ā drop a Kudos or Accept as Solution ā āļø Cheers! */