- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2016 12:15 PM
Hi,
How do I go about making the UI Action buttons ONLY visible to those who are in the assignment group? This group can vary from incident to incident so I can't hard code the group name.
For example, for an Active Directory incident, the incident is assigned to the "AD Group" (i.e "Assignment Group = AD Group"), anybody from this group can see the buttons but not other groups.
If this incident is then assigned to 'HR group", then only the person from the HR group can see this ticket, not AD group or any other groups out there.
Please advise as I'm relatively new to SN and not sure how group-based rules work in SN. I know the syntax for assigned_to (i.e current.assigned_to== gs.getUserID()) but unsure about the group-based.
Thanks,
Catherine
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2016 12:23 PM
Try something like: gs.getUser().isMemeberOf(current.assignment_group) - in your UI action condition.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2016 12:23 PM
Try something like: gs.getUser().isMemeberOf(current.assignment_group) - in your UI action condition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2016 12:47 PM
Goodness, I had this line all this time and thought it wasn't working, till I saw your comment and re-looked again. Turns out I was looking at the wrong button initially and thought it wasn't working. Yes, this is the correct syntax.
Thanks so much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2025 02:44 AM
it is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2025 07:18 AM
Hi @jeelani0171 do you had any solution?