ACL not working for manage attachments tab in the top of the form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2025 01:15 AM
The requirement is to make attachments visible only to the members of the assigned group in the ritm table
I have created a read acl to sys_attachment table.
but it can still bring the attachments and show - How?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2025 08:54 PM - edited 04-20-2025 09:45 PM
Hi @FathimuthuB
Create one "Deny Unless" Read ACL on like below on the sys_atachment table.
Deny Unless ACL:
Note: Change the table name as required. I've used "Incident" table for testing.
var table = current.table_name;
var inc = new GlideRecord(table);
inc.get(current.table_sys_id);
var assignmentGroup = inc.getDisplayValue('assignment_group');
if (gs.getUser().isMemberOf(assignmentGroup)) {
answer = true;
} else {
answer = false;
}
Hope this hlps.
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2025 08:58 PM
did you verify logs in that script?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader