How to Show or Hide Paper Clip Attachment based on specific Role?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2023 12:58 AM
Requirement:
Show Paper Clip Attachment to a specific role.
Currently there is a custom role with empty roles but have Module with Roles for access.
The Paper Clip is hidden for users with that specific role.
Thanks in advance.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2023 01:03 AM
Hi @ican ,
There are two ways to tackle this issue in your case.
1. Either define a custom role and create an ACL on sys_attachment table with create operation to allow user to create an attachment on the sys_attachment table
2. Make changes in the OOTB Create ACLs on sys_attachment table to allow user to add attachments on the form.
Also, just for knowledge :
The user cannot attach a file when there is not CREATE and READ ACL in place that satisfies the User roles.
- As a first step, enable the Security Rules Debugging and look for failing ACLs in sys_attachment table.
- If there are failing ACLs while debugging, open and verify why they are failing.
- If not, navigate to Access Control(ACL) from nav bar and search for ACLs on sys_attachment table. Verify if there are any ACLs that matches the user roles.
- If there are no ACLs for the user, create READ and CREATE ACLs that matches the user role.
- Now verify if the user can attach the files in the form.
- Under script section of the ACL, write a script in order to prevent/provide access based on the business needs for that user(ex:user can access only the attachments that he attached or can attach the files to only the records that he created.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2023 02:45 AM
I have tried the 1st solution, but then the paper clip is still hidden for that user with the specific role.