UI Action button visible to only assigned assignment group, no other groups

catherinedoan
Kilo Explorer

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

1 ACCEPTED SOLUTION

Michael Fry1
Kilo Patron

Try something like: gs.getUser().isMemeberOf(current.assignment_group) - in your UI action condition.


View solution in original post

6 REPLIES 6

Michael Fry1
Kilo Patron

Try something like: gs.getUser().isMemeberOf(current.assignment_group) - in your UI action condition.


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.


it is not working

 

Hi @jeelani0171 do you had any solution?