The Query All Files permission lets your API user discover and back up all file records in Salesforce (excluding ContentDocumentLink). Enabling this permission delivers a notable performance boost to the backup process and adds the ability to track when private files belonging to other users or groups are removed.
To grant this permission, create (or reuse) a Permission Set with Query All Files enabled and assign it to your Spanning API user.
Salesforce Lightning
- From Setup, enter Permission Sets in the Quick Find box, then select Permission Sets.
- Click New.
- Enter a Label and API Name (the values don’t matter to Spanning).
- Click Save.
- In the newly created Permission Set, click App Permissions.
- Click Edit.
- Under Content, toggle on Query All Files.
- Click Save, then confirm by clicking Save in the popup.
- From Setup, enter Users in the Quick Find box, then select Users.
- Click your Spanning API user record.
- Under Permission Set Assignments, click Edit Assignments.
- Move the Permission Set you just created into Enabled Permission Sets.
- Click Save.
Salesforce Classic
- Go to Setup → Manage Users → Permission Sets.
- Click New.
- Enter a Label and API Name.
- Click Save.
- On the new Permission Set, click App Permissions.
- Click Edit.
- Under Content, toggle on Query All Files.
- Click Save, then confirm by clicking Save in the popup.
- Go to Setup → Manage Users → Users.
- Click your Spanning API user record.
- Under Permission Set Assignments, click Edit Assignments.
- Move the Permission Set into Enabled Permission Sets.
- Click Save.