ACL not working for manage attachments tab in the top of the form

FathimuthuB
Tera Contributor

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. 

FathimuthuB_0-1745136581020.png

but it can still bring the attachments and show - How?

FathimuthuB_1-1745136890671.png

 

 

2 REPLIES 2

J Siva
Tera Sage

Hi @FathimuthuB 
Create one "Deny Unless" Read ACL on like below on the sys_atachment table.
Deny Unless ACL:

JSiva_0-1745209317358.png

 

JSiva_1-1745209397606.png

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

Ankur Bawiskar
Tera Patron
Tera Patron

@FathimuthuB 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader