Apex Query on ContentVersion object and get all records, but the record are coming on current login user owned, not all records are coming. for example i am login with administrator account and want to see all records on my page, but they just return the records owned by me . is it any work around to get all records.
The ContentVersion Sobject document mentions
Users (including users with the “View All Data” permission) can only query files they have access to, including:
- All Salesforce CRM Content files in libraries they're a member of and in their personal library, regardless of library permissions (API version 17.0 and later).
- All Chatter files they own, posted on their profile, posted on groups they can see, and shared directly with them (API version 21.0 and later).