Enable Salesforce API Access

To connect to Salesforce to Sequin, the user account you use to authenticate must have API access enabled.

Access to the Salesforce API is not enabled for all users by default. When a user without access to the API attempts an API call, the following error is returned by the API and Sequin’s connection fails:

{
  "errorCode": "API_DISABLED_FOR_ORG",
  "message": "The REST API is not enabled for this Organization."
}

To enable API access for a user, follow these steps by assigning API Enabled permissions in either profiles or permission sets.

Profiles

Each Salesforce user is assigned one (and only one) profile. If you want to grant API access to all users with a given profile, then granting API access at the profile level is the easiest way to do so.

Step 1: Navigate to Setup by clicking the gear icon in the top right corner of the Salesforce UI.

Connect Salesforce to Postgres with Sequin

Step 2: In the left sidebar, navigate to Users > Profiles.

Step 3: Click the Edit button next to the profile you want to enable API access for.

Connect Salesforce to Postgres with Sequin

Step 4: Scroll down to the Administrative Permissions section and check the API Enabled checkbox.

Connect Salesforce to Postgres with Sequin

Step 5: Click Save.

Now, ensure the user is assigned the profile that has API access enabled by following these steps:

Step 1: Navigate to Setup > Users > Users and click Edit next to the user you want to update.

Step 2: Select the profile that has API access enabled in the Profile dropdown. Then click Save:

Connect Salesforce to Postgres with Sequin

Permission sets

Permission sets are a way to grant additional permissions to users who already have a profile. If you want to grant API access to a subset of users with a given profile, then granting API access at the permission set level is the easiest way to do so.

Step 1: Navigate to Setup by clicking the gear icon in the top right corner of the Salesforce UI.

Step 2: In the left sidebar, navigate to Users > Permission Sets.

Step 3: Click the the permission set you want to enable API access for.

Connect Salesforce to Postgres with Sequin

Step 4: Scroll down to System and select the System Permissions:

Connect Salesforce to Postgres with Sequin

Step 5: Click the Edit button and check the API Enabled checkbox.

Connect Salesforce to Postgres with Sequin

Step 6: Click Save and confirm the changes.

Now, ensure the user is assigned to the permission set that has API access enabled by following these steps:

Step 1: With the permission set still open, click the Manage Assignments button.

Connect Salesforce to Postgres with Sequin

Step 2: Click the Add Assignments button. And select the user you want to assign the permission set to. Then click Next:

Step 3: Confirm the assignment by clicking the Assign button:

Connect Salesforce to Postgres with Sequin

Was this page helpful?