> For the complete documentation index, see [llms.txt](https://docs.stacksync.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stacksync.com/connectors/salesforce/authorize-salesforce/enable-api-access-in-salesforce.md).

# Enable API Access in Salesforce

API access needs to be enabled in Salesforce for the user connecting Stacksync to its Salesforce instance.

Follow the steps below to:

* Enable API access in Salesforce by Profile
* Enable API access in Salesforce by Permission Set

{% tabs %}
{% tab title="Enable API access by Profile" %}
**Enable API access in Salesforce by Profile**

\
1\. Click the Gear icon and click **Setup.**

<figure><img src="https://3057949906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDSqHwwR8lD3JUWz3E9NH%2Fuploads%2Fgit-blob-b13295a2efc6e5b8d79bdd9e63588bbae49cd67e%2Fimage%20(6).png?alt=media" alt=""><figcaption></figcaption></figure>

\
2\. Type **profiles** into the Quick Find box and select **Profiles.**\
\
3\. Click **Edit** against the Profile you wish to enable API access for.

<figure><img src="https://3057949906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDSqHwwR8lD3JUWz3E9NH%2Fuploads%2Fgit-blob-6b0a19fc57f6f2a208f1d87996f9bc46cb11c127%2Fimage%20(8).png?alt=media" alt=""><figcaption></figcaption></figure>

4\. Scroll down to **Administrative Permissions** and check the **API Enabled** box and click **Save**.<br>

<figure><img src="https://3057949906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDSqHwwR8lD3JUWz3E9NH%2Fuploads%2Fgit-blob-ed8833799034ed9f8a0578b31161ba8c9eeacd6a%2Fimage%20(9).png?alt=media" alt=""><figcaption></figcaption></figure>

The API in Salesforce is now enabled for the modified profile. All users with this profile now have API enabled permissions.

***

***Optional:*** If your sync includes the ContentDocumentLink object (used for Salesforce Files / attachments), also enable the Query All Files permission in the same permission set. This only works for custom profiles, salesforce standard profiles do not allow you to turn enable this permission.\
\
5\. In your custom profile scroll down to *Administrative Permissions* section and enable *Query all data*

<figure><img src="https://3057949906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDSqHwwR8lD3JUWz3E9NH%2Fuploads%2Fgit-blob-dedfca48f4b75fc9df3aea681202ce8ae0132f16%2FScreen%20Shot%202026-04-20%20at%208.12.11%20PM.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Enable API access by Permission Set" %}

#### Enable API Access in Salesforce by Permission Set

\
1\. Click the Gear icon and click **Setup.**

<figure><img src="https://3057949906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDSqHwwR8lD3JUWz3E9NH%2Fuploads%2Fgit-blob-7a27c5cbaf301568331bb321eb3cfed2dfcb4416%2FScreen%20Shot%202026-04-20%20at%207.25.10%20PM.png?alt=media" alt=""><figcaption></figcaption></figure>

\
2\. Type **permission** into the Quick Find box and select **Permission Sets.**

3\. Select the Permission Set you wish to enable API access for. (Or click "NEW" if you want to create a new one).

<figure><img src="https://3057949906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDSqHwwR8lD3JUWz3E9NH%2Fuploads%2Fgit-blob-1004db760e696730b8a29cd1ea5dda63f7a5e874%2Fimage%20(10).png?alt=media" alt=""><figcaption></figcaption></figure>

4\. Scroll down to **System** and click **System Permissions.**

<figure><img src="https://3057949906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDSqHwwR8lD3JUWz3E9NH%2Fuploads%2Fgit-blob-edc20b50fc29cca5e5a123f33db7eec0c215bdcb%2Fimage%20(11).png?alt=media" alt=""><figcaption></figcaption></figure>

5\. Click **Edit**

<figure><img src="https://3057949906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDSqHwwR8lD3JUWz3E9NH%2Fuploads%2Fgit-blob-61b547813afe985a50fa9f9898c229ce2897d568%2Fimage%20(12).png?alt=media" alt=""><figcaption></figcaption></figure>

6\. Check the **API Enabled** box and then scroll up and click **Save.**

<figure><img src="https://3057949906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDSqHwwR8lD3JUWz3E9NH%2Fuploads%2Fgit-blob-162513be3347558a1ee145f977303d16ec651d2c%2Fimage%20(13).png?alt=media" alt=""><figcaption></figcaption></figure>

The permission set now has the API Enabled permission. The permission set should be applied to the user connecting Salesforce to Stacksync.

7. Select the permission set and click **Manage Assignments** and then **Add Assignments**.
8. Select the check boxes next the names of the users you want assigned to the permission set, and click **Assign**.

***

*Optional:* If your sync includes the ContentDocumentLink object (used for Salesforce Files / attachments), also enable the Query All Files permission in the same permission set.

8\. Switch the permission set overview to *App Permissions*

<figure><img src="https://3057949906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDSqHwwR8lD3JUWz3E9NH%2Fuploads%2Fgit-blob-22aca3708ddaa0331455f3e4d5d29b4ee08f3788%2Fimage%20(14).png?alt=media" alt=""><figcaption></figcaption></figure>

9. Click **Edit**

<figure><img src="https://3057949906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDSqHwwR8lD3JUWz3E9NH%2Fuploads%2Fgit-blob-35f97d261cc8c81fe105236b70e6513ee21233c8%2Fimage%20(15).png?alt=media" alt=""><figcaption></figcaption></figure>

10. Scroll down to the *Content* section and enable *Query All FIles* and then scroll up and click **Save.**

<figure><img src="https://3057949906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDSqHwwR8lD3JUWz3E9NH%2Fuploads%2Fgit-blob-ba9c14e4ed0b87606d0e38d494ecda101cc48055%2FScreen%20Shot%202026-04-20%20at%207.57.28%20PM.png?alt=media" alt=""><figcaption></figcaption></figure>

<br>
{% endtab %}
{% endtabs %}

Learn more in [this Salesforce documentation](https://help.salesforce.com/s/articleView?id=sf.branded_apps_commun_api_permset.htm\&type=5).
