ACL not restricting data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2023 01:34 AM
Hi All,
I have a custom table which has table.none and table.* ACLs with custom roles to restrict access.
Now I want to show only those records to the logged in user if the user is part of the Assignment group on the record.
Created an ACL as table.* and in conditions mentioned assignment group is(dynamic) one of my groups, and added the role which is needed to give read/view access on the table.
Result : The records are not restricted and user is able to see other assignment group records as well of which user is not part of.
Tried debugging it all ACLs are being passed by the user. Should I write the condition in the script tab ? Going to try this next.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2023 01:43 AM
Hello @Anubhav24
answer = true;
write the above code into the script.
Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.
Regards,
Samaksh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2023 01:49 AM
Hi Anubhav,
To restrict access at record level, you should write condition at row level . Add the condition for assignment group as well on table.none acl.
regards
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2023 01:49 AM
table.None READ ACL should be sufficient for table level READ.
Why you created table.* READ ACL?
Please share your screenshots of ACLs created
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2023 02:51 AM
Changed the .* ACL to None but still it is not restricting data
The role specified in description has been added in the role tab