Restrict users to access incidents based on assignment group using ACL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 01:16 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 01:20 AM
Hello Shawn,
You have an issue in your script code.
Use the following one:
if (current.getDisplayValue("assignment_group") == "RMA Approvers" || current.getDisplayValue("assignment_group") == "Network") {
if (gs.getUserID().isMemberOf(current.getValue("assignment_group")) answer = true;
else
answer = false;
}
else {
answer = false;
}
Let me know if that works for you!
Please, don't forget to mark my answer as correct if it solves your issue or mark it as helpful if it is relevant for you!
Best Regards,
Filipe Cruz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 04:27 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 07:55 AM
Hello Shawn,
The 114 records are the ones catched by the condition statement. In your case, you were not adding any condition.
The script will be evaluated per each access to the table and the amount of records retrieved will depend on the user.
Please test by impersonating a specific user that belongs to those groups and another one that does not belong to those groups.
Please, don't forget to mark my answer as correct if it solves your issue or mark it as helpful if it is relevant for you!
Best Regards,
Filipe Cruz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 01:20 AM
What are the other ACL for read on the table? They could be contradicting. Ensure you modify the script at that ACL itself.