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 

Get no ContentDocument records via REST API and SOQL with a separate api user.

Hi community,
when I try to get the ContentDocument informations via REST API and with my admin user than I get all informations out of the table. But when I try to get the informations with my API User (the user is part of a separate API profile) than I get "No records matched query".

I don't know whats wrong, maybe it is a visibiliy problem, but the api profile is a copy of the sys admin profile and has all rights to view all data ("View All Data" checked in Administrative Permissions and "Modify All" is checked for every Standard Object Permissions/Custom Object Permissions).

This is the query I run:
 
Select Id,IsArchived,ArchivedById,ArchivedDate,IsDeleted,OwnerId,Title,PublishStatus,LatestPublishedVersionId,ParentId,LastViewedDate,LastReferencedDate,Description,ContentSize,FileType,FileExtension,SharingOption,ContentModifiedDate,ContentAssetId from ContentDocument
I hope someone can help me, thanks!