How to make an attached document to record visible only for the owner of record (custom object) and not visible for other users (for wish record is visible)?

  • Who are allowed to upload the document to record? Owner of record or the users having Read access too? Commented Sep 10, 2023 at 13:42
  • Are you talking abput document or file object which is ContentDocument? Commented Sep 11, 2023 at 4:01

1 Answer 1


If you are using document object, you can control the visibility from its folder.

If you are using file, then you control its visibility using the contentdocumentlink.

If files are being uploaded from file related list, You need to have a trigger which delete the contentdocumentlink pointing to the record and just keep the contentdocumentlink pointing to person who actually uploaded the file.If you don't want to access to him as well, you need to create another link to owner of the object record and delete the contentdocumentlink for user who uploaded the file.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .