---
schema_version: "1"
id: 15baa46e379bb796ebfb61d71690a7b1ea3b236fb2cacf3f7eab3f4f1ec9695b
title: Set Up Users to Query Salesforce Files
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/experience/264-0-0/collab_files_query.md
canonical_url: https://help.salesforce.com/s/articleView?id=experience.collab_files_query.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: f11c5d619c9fecdc92628add55a1e1692b696973383ec41caa83dd5392c962aa
description: 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.
products:
  - Experiences
release: "264"
---
# 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

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Group</strong>, <strong>Professional</strong>, <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, <strong>Contact Manager</strong>, and <strong>Developer</strong> Editions</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d53472e80">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d53472e80 ">To create permission sets:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d53472e80 ">Manage Profiles and Permission Sets</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d53472e80 ">To assign permission sets:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d53472e80 ">Assign Permission Sets</td>

          </tr>
        </tbody>
      </table>

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**.

#### See Also

- [_Knowledge Article_: Understanding "Query Non Vetoed Files" Permission and File Access](https://help.salesforce.com/s/articleView?id=004517924&type=1&language=en_US)