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
MXGMXG 

Can I set object visibility for all objects to a non sys admin profile?

Hi Community,
I want to get all informations out of the ContentDocument table via REST API (SOQL). 

The call works - I get a response, but only for my admin user (with all informations about the documents).. when I test the api call with our "company API user" the API returns a 200 response - but this response does not contain any information (the api user is not a part of the sys admin profile. The user is in a custom profile.)

Now I think that our api user does not have enough visibility rights. Can I set object visibility of system objects to a non admin profile?

Thanks!
NagendraNagendra (Salesforce Developers) 
HI MXG,

Hi Max,

Yes, a non-admin profile can be granted visibility to all objects. Have you tried assigning the "View All Data" permission to the profile?

Thanks!
Nagendra
MXGMXG
Hi Nagendra,
thanks for your reply and yes I assigned all the "View All Data" permissions to the profile (also the checkbox in the "Administrative Permissions"). But I can not set the permission for ContentDocument, I don't see a place to do this.

Thanks, Max