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
Ana NetoAna Neto 

Who can see that file in Salesforce? Getting permissions via the API

I am trying to determine which users can see a specific file in Salesforce. In other words, I'm trying to get permissions information via the API.

I know Salesforce can be queried to determine the effective permissions for a given user, for a given file. However, it does not allow querying for multiple users at the same time (correct me if I am wrong).

This means that the number of API calls to determine the permissions for a single file is equal to the number of  users. Is my reasoning correct? Or is there any better way to find this information out via the API?

Thank you in advance for any tip or advice,

Ana