Loading
Collaborate with Everyone
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Set Up Users to Query Salesforce Files

          Set Up Users to Query Salesforce Files

          Control access to content files and objects via API queries with the Query All Files and Query All Non Vetoed Files user permissions. To grant users access to content files and objects, create a permission set with user permissions and assign it to users.

          Required Editions

          Available in: Salesforce Classic and Lightning Experience
          Available in: Group, Professional, Enterprise, Performance, Unlimited, Contact Manager, and Developer Editions
          User Permissions Needed
          To create permission sets: Manage Profiles and Permission Sets
          To assign permission sets: Assign Permission Sets

          The Query All Files user permission requires the View All Data and View All Records permissions. Users with the Query All Files permission can query all files in the org with SOQL, including files in nonmember libraries and unlisted groups. Users can’t edit, upload new versions, or delete files that they don’t have access to.

          Users can query the APIs for ContentDocument and ContentVersion, and retrieve all files in the org, including files in nonmember libraries and files in unlisted groups. Users can query ContentDocumentLink without a filter on Id, LinkedEntityId, and DocumentId.

          On its own, the View All Data permission allows you to query only files that you own or have access to.

          The Query Non Vetoed Files user permission allows users to query all public, non-vetoed files in a Data Cloud org with SOQL. This permission determines which files can be ingested into Data Cloud. For all files that are enabled, the related records in the APIs for ContentDocument, ContentVersion, and ContentDocumentLink become accessible for ingestion. After you turn on the Query Non Vetoed Files user permission, enable the setting Enable Files to be ingested into Data Cloud.

          To assign these permissions to users,

          1. From Setup, in the Quick Find box, enter Permission Sets, and then select Permission Sets.
          2. Click App Permissions | Edit.
          3. Select the user permissions.
          4. Save your changes.
          5. Click Manage Assignments | Add Assignments.
          6. Select the users, then click Assign.
           
          Loading
          Salesforce Help | Article