ACL restriction for one assignment group to only members
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2020 02:51 AM
I have a requirement to restrict incidents assigned to group "Network" to only network group members.
I tried this ACL. Can someone tell me what I am doing wrong because when I impersonate someone not in network I can read/ update/ write on the incident etc.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2020 06:24 AM
Hi,
please share your script and screenshot
Did you apply the encoded query correctly?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2020 06:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2020 06:50 AM
Hi Daniela,
please update; small change
So now when member of network group goes to incident he/she see
1) only those incidents where assignment group is Network
2) AND Category is Software
3) AND Sub Category is Email
4) AND Service is Email
current.addEncodedQuery('assignment_group.name=Network^category=software^subcategory=email^service=email');
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2020 04:32 AM
Hi Daniela,
You can also restrict this query using query BR.
Create a B-Rule, before -> query - true and use the below script:
if(!gs.getUser().isMemberOf('Network')){
current.addQuery('assignment_group','!=','sys_id of Network Group')
}
Can you try this if it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2020 05:10 AM
Tested but did not help