How can we restrict incidents based on assignment group?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2019 05:12 AM
Hi All,
I have one requirement
Group 1 having users(User 1 & User 2) and Group 2 having users(User 3 & User 4)
Group 1 users will see their incidents only and not see other incidents(Group 2)
How can we restrict incidents access or view by using Support role and Group 1 group.
Group 1 | Group 2 | |
Users | User 1, User 2 | User 3, User 4 |
Roles | ITIL, Support | ITIL, Support |
- Labels:
-
Best Practices
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2019 05:26 AM
Hi Raj,
You have to write below code in Write ACL script of Incident table:
if(gs.getUser().isMemberOf(current.assignment_group)){
answer=true;
}
Kindly mark answer as correct or helful if it helps you to solve your problem.
Thank You,
Ashvini k
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2021 12:08 PM
tried it but didnt work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2019 10:41 PM
HI Raj ,
Did you get the solution for this?
Thanks
Sudhir