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
Mallesh GMallesh G 

Permission set of a file using REST call

Hi There,
I need to get file permissions before add/modify/delete it using REST API. Let me know how to get permission of a file (ContentVersion document) for a particular user before making any changes to it.

Thanks,
 
Veera.
ShashankShashank (Salesforce Developers) 
The "ContentDocumentLink" object has a field "ShareType" which determines the content permissions that the user has in the library: http://www.salesforce.com/developer/docs/api/Content/sforce_api_objects_contentdocumentlink.htm