function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Raj01Raj01 

How to share the file record with group of users

Hi,

The cast Iron job is running every day and uploading the files on opportunity record File Section. (creating the contentversion, contentdocument and ContentDocumentlink records)
These files by default every one able to see in the Org. 

These files should be able to see only one group of users. no one shouldn't see these files including Opportunity owner.
Could you please let us know how can we share the records with only one group.