> 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/two-way-sync/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://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FgZHw0TmiCiKCA0HMNgSC%2Fimage.png?alt=media&amp;token=47bdcb1e-e439-42de-a7b0-2bdf6e46de18" 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://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FAsIL4EYKzKLewN3cYdyo%2Fimage.png?alt=media&amp;token=c04afded-32e8-41c5-8a6f-8f93b3965f69" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FKff7A7wEvKpIXZz4mrPR%2Fimage.png?alt=media&amp;token=e3e397eb-4be2-4e15-8c41-f8be2ec4bfc0" 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://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FEfdaqwZyRGka5SzzxZJP%2FScreen%20Shot%202026-04-20%20at%208.12.11%20PM.png?alt=media&amp;token=e1fc388c-f7f0-4489-98cf-4c42b6620c84" 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://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FcgdcWUDgt40Z06yFT0OY%2FScreen%20Shot%202026-04-20%20at%207.25.10%20PM.png?alt=media&amp;token=5b29b928-e73a-4b89-a857-7f335bd025ca" 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://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2F6SGCf7pJRKoFbfeE1228%2Fimage.png?alt=media&amp;token=09741b60-2213-477c-ad22-54223e8f09fe" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FZPixjwbl246Fjo3sv5tz%2Fimage.png?alt=media&amp;token=9371cde6-fba4-4eb2-9406-cf410dba64ba" alt=""><figcaption></figcaption></figure>

5\. Click **Edit**

<figure><img src="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FNTOh6ZpltpCZpqjVKW7f%2Fimage.png?alt=media&amp;token=087a5182-56eb-425e-a92a-2995e6442151" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2F6LWyHUbTMT8uL1hiT3NG%2Fimage.png?alt=media&amp;token=12705aaa-4217-49af-b0ac-1c1ada5aab0a" 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://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FJJmumjeZkpd6dA8o0ouU%2Fimage.png?alt=media&amp;token=06dbb624-2f30-43a1-b19b-6e3b8b242ddd" alt=""><figcaption></figcaption></figure>

9. Click **Edit**

<figure><img src="https://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FRXOFr6SRi7To9f3nDBOY%2Fimage.png?alt=media&amp;token=5caa405b-55ca-43fa-b1fb-637784a60479" 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://2867423571-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfJjIdV9cuW6K8asJjTPJ%2Fuploads%2FZkhd5Q0doU1tBZK61mHx%2FScreen%20Shot%202026-04-20%20at%207.57.28%20PM.png?alt=media&amp;token=59478e05-d771-4fb6-a208-9cf5cf06c546" 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).
