Skip to main content

Hi, I've been having this issue with a requirement where users want to be able to upload a copy of passport on a contact which should be available to all users.

 

However, only some users should be able to upload and see classification documents, for which I put a visibility rule on the related list. This does not meet the requirement because any classification document that is uploaded can be seen in the related list on the copy of passport tab. Any idea of what can be done to meet the requirement?How to limit access to files?Classification Documents.png

1 Antwort
  1. 11. Sept. 2023, 18:23

    @Aized Rathore You may need to change the Org Wide Sharing  to be private for files and create a group so you give access to certain group of people.

    Now, the only thing is that the file doesn't have a 'Type' to differentiate between passport and anything else.

     

    In that case, I'd probably create a custom object called: documents with a type field (picklist), a lookup to the contact so the user can create as many documents and each document record will have its own file that they will upload.

     

    You can even create a screen flow to make this process smoother. 

     

    You can restricit the access to the file based on the parent record (Documents object): https://help.salesforce.com/s/articleView?id=sf.admin_files_on_record_sharing_setting.htm&type=5