Restrict attachments on confidential Incident to ITIL user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2022 09:28 AM
Hi All,
I am having a requirement to hide attachments on Incidents for ITIL users, those are confidential incidents.
I have created a read acl on sys_attachment table where in conditions, I have given table name is Incident.
Could anyone please help me with the script where in I need to check if confidential is true and role is ITIL then attachments should be hidden
For non confidential incidents , ITIL users can see the attachments on Incidents

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2022 06:47 AM
Hi,
The above was an example and not literal script that was tested and good to go. I don't know the name of your confidential field, so you'd need to change that as appropriate. As was mentioned, that confidential field isn't on the attachment table, so you'd have to Glide to it and then go from there.
My script was just to give you an idea of what to do.
I saw that you are employed with Infosys...which is a very large SN partner, so I assumed you or your peers could adjust things from there.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!