Salesforce Setup Guide
Follow our setup guide to connect Salesforce to Fivetran.
Prerequisites
To connect Salesforce to Fivetran, you need:
- An active Salesforce account with the permissions required for your chosen connection option:
- Fivetran App: Administrative privileges to approve uninstalled connected apps. For more information, see the Grant permission to connect to uninstalled apps step.
- Custom App: The necessary permissions to create external client apps. For more information, see our Create Local External Client App documentation.
- A Salesforce Enterprise-level account plan or higher, or purchased Salesforce API calls
(Optional, Private Preview only) To manage credentials outside of Fivetran, you need an External Secret Manager configured for your account before starting setup.
If you connect with the Fivetran App, you can create up to four connections using one set of Salesforce account credentials. That's because Salesforce limits the number of connections made using OAuth2 to four per account per application.
If you attempt to authenticate more than four connections using one set of Salesforce account credentials, the earliest connection you authenticated with those credentials loses its authentication.
If you need more than four Fivetran App connections, you must use additional Salesforce account credentials to create those connections. This limit doesn't apply to Custom App connections.
Choose the Salesforce Integration Method
In the setup form, the Salesforce Integration Method field determines which Salesforce app Fivetran uses to authenticate. The following options are available:
- Fivetran App: Fivetran authenticates using an app that Fivetran manages. You authorize the connection by logging in to Salesforce. This option requires the least configuration in Salesforce.
- Custom App: Fivetran authenticates using an external client app that you create and manage in your Salesforce org.
Select the option based on your requirements:
| Requirement | Option |
|---|---|
| Simplest setup | Fivetran App |
| Mutual TLS (mTLS) authentication | Custom App |
| AWS PrivateLink connection | Custom App |
| Authentication without an interactive Salesforce login, for example, because your org enforces SSO | Custom App |
| Connection management using Terraform or the Fivetran REST API | Custom App |
The Salesforce Integration Method field is shown only for direct connections. If you connect using PrivateLink, the setup form skips it and always shows the Custom App fields.
Supported authentication methods
The authentication methods available to you depend on the option you choose:
Fivetran App: Uses 1-way TLS (Transport Layer Security) with OAuth2.0 (refresh-token flow) authorization. You authenticate by clicking Authorize and logging in to Salesforce.
Custom App: Uses your own external client app with one of the following grant types:
- Client Credentials: You authenticate using your external client app's Client ID and client secret, and Salesforce issues access tokens for the integration user configured in the app's policies.
- JWT Bearer: You authenticate using your external client app's Client ID, an RSA private key, and the exact Salesforce username of a pre-authorized integration user. Salesforce stores the matching public certificate, and this flow doesn't use a client secret or refresh token.
Client Credentials and JWT Bearer use 1-way TLS by default. For direct connections, you can add a layer of security with mutual TLS (mTLS), which uses mutual TLS authentication with OAuth2.0 (client-credential flow) authorization. For more information, see our Mutual Authentication (mTLS) documentation.
- mTLS requires additional configuration in your Salesforce account and isn't recommended for most users.
- mTLS is available only with the Client Credentials grant. JWT Bearer with mTLS isn't supported.
- mTLS is available only for direct connections. It isn't supported when using the PrivateLink connection method.
Setup instructions
Complete the steps that apply to your chosen option. Steps marked Fivetran App only or Custom App only don't apply to the other option.
Disable session IP locking
In Salesforce, go to the Session Settings page and clear the Lock sessions to the IP address from which they originated checkbox.
You rarely need to change this setting (fewer than 1% of cases) because it's disabled by default for most users.
You may encounter the INVALID_SESSION_ID error when session IP locking is turned on.
Grant permission to connect to uninstalled apps (Fivetran App only)
To connect to Salesforce using an application that isn't installed in your organization, you must grant users the appropriate permissions to connect to uninstalled apps. To grant user permissions, you must have administrative privileges. You can assign this permission either by adding it to an existing permission set or by enabling it directly on the profile of the user that you want to connect to Fivetran. For more information, see the Salesforce documentation on uninstalled connected apps.
To grant permission, do the following:
Log in to your Salesforce account.
Click Setup.
Under the Administer tab, expand the Manage Users section.
From the drop-down menu, select Permission Sets. You can either create a new permission set or use an existing one. One user can be assigned multiple permission sets.
Click Edit.
Enable Approve Uninstalled Connected Apps. Alternatively, if API Access Control is enabled for your organization, enable Use Any API Client.
Click Save.
Click Manage Assignments > Add Assignments.
Select the user you want to assign this permission set to.
Click Assign.
(Optional) After your Fivetran connection is successfully syncing, return to the permission set and disable Approve Uninstalled Connected Apps to remove this permission.
The Approve Uninstalled Connected Apps permission is required only during the initial connection setup. After the connection is successfully created and is syncing data, you can remove the permission from the account for enhanced security.
Create external client app (Custom App only)
To connect your Salesforce account to Fivetran, create an external client app in your Salesforce account. For instructions for your chosen grant type, see our Create Local External Client App documentation. For JWT Bearer, generate a private key and public certificate, enable JWT Bearer Flow, and pre-authorize your integration user.
If you plan to use mTLS, also follow our Mutual Authentication (mTLS) documentation to enable mutual authentication and prepare your certificate and private key.
Allowlist Fivetran IP addresses
If your Salesforce org enforces IP restrictions at the organization or profile level, you must allowlist the required Fivetran IP addresses before Fivetran can connect to your account.
Obtain required IP addresses
Data replication IP addresses: Fivetran accesses your Salesforce instance from the IP addresses where your destination is deployed. These vary by region. For the full list of IP addresses you must allowlist for your region, see our IP addresses documentation. This applies to our SaaS Deployment model only.
Access token flow IP addresses (Fivetran App only): The Fivetran App uses a fixed set of IP addresses for the OAuth access token flow. If you connect with the Fivetran App, allowlist all of the following:
| IP addresses in CIDR notation | IP address range |
|---|---|
34.85.252.27/32 | 34.85.252.27 |
35.197.105.90/32 | 35.197.105.90 |
136.107.62.136/29 | 136.107.62.136 - 136.107.62.143 |
136.118.115.24/29 | 136.118.115.24 - 136.118.115.31 |
Configure allowlists in Salesforce
Add the IP addresses in Salesforce to your org-level trusted IP ranges and your profile's login IP ranges.
- At the organization level: If your org uses Network Access as part of its authentication policy, navigate to Setup > Network Access and add the required IP addresses to your org-wide trusted IP ranges.
- At the profile level: Navigate to Setup > Profiles > [integration user profile] > Login IP Ranges and add the required IP addresses to the integration user's login IP ranges. For single IP addresses, enter the same value as both the start and end address. For IP ranges, enter the start and end addresses of the range.
For more information, see the Salesforce trusted IP ranges documentation.
If your Salesforce org doesn't have IP restrictions enabled at the org or profile level, you can skip this step.
Advanced configuration
Advanced configuration provides additional setup options that help you get more granular control over the permissions, data access, and security for your Salesforce connection.
Expand for instructions
Enable field history tracking
To enable field history tracking, follow the instructions in the Salesforce field history tracking documentation.
Configure Salesforce account
Create new user and profile in Salesforce
Expand for instructions
To set up a Salesforce connection, you can use any Salesforce user within your organization that has permission to read data from the Salesforce APIs. However, we recommend creating a dedicated user and limiting this user's data access to only the data you want to sync. You can limit data access for a user by creating a profile in Salesforce and assigning it to the user.
To create a new user and profile in Salesforce, do the following:
Log in to Salesforce. You must have administrative privileges to create a user.
In the top-right corner of your screen, click Setup.
Under the Administration tab on the left side of the screen, click the Profiles tab.
Click New Profile.
Select Read Only from the Existing Profile drop-down menu.
Enter a memorable name in the Profile Name field. For example,
Fivetran User Read Only.
Click Save. The profile page opens.
Click Edit in the Profile Detail section.

Scroll down to the Standard Object Permissions section and set the Read permission for the objects that you want to sync.

Scroll down to the Custom Object Permissions section and grant the Read permission for the objects that you want to sync.
Click Save.
Under the Administration tab on the left side of the screen, click the Users tab.
Click New User.

Fill in all the required details.
In Profile, select the user profile you created (Fivetran User Read Only).

(Optional) To grant field-level permissions using permission sets, follow the steps under Limit the connecting user in Salesforce in the Limit permissions to tables or columns (optional) section.
Limit permissions to tables or columns (optional)
Expand for instructions
We sync the data that we have access to based on the viewing permissions of the connecting user. If you don't want us to sync a certain type of data to your destination, limit the permissions of the connecting user.
There are two ways to limit the data that we extract from your Salesforce account:
Disable tables in the Fivetran dashboard
To disable tables:In your Fivetran dashboard, navigate to the Salesforce connection details page.
Go to the Schema tab and exclude the tables and columns that you don't want to sync.
If you are concerned about unintentionally syncing sensitive data to your destination, click the gear icon to open the Schema Change Settings menu, then select Allow columns.
Limit the connecting user in Salesforce
Fivetran connects to your Salesforce instance through the credentials of the connecting user, so to limit our access to the data, limit that user's access. You can do this in Salesforce using permission sets.
It's best to limit the connecting user's access before you initially connect the user through our setup form. Otherwise, records that we already synced to your destination may become stale, because we can no longer read their updates after you've restricted the user's permissions.
To limit user access:
Log in to Salesforce. You must have administrative privileges to set permissions.
Click Setup.
Under the Administer tab, click the arrow next to Manage Users.
From the drop-down menu, select Permission Sets.
(Recommended) Create a new permission set specifically for the user that you want to connect to Fivetran. For example,
Fivetran Permissions.Users can have multiple permission sets assigned to them. To be certain of what data we have access to, assign only one permission set to the connecting user.
To create the permission set, click New, enter a label, and select the appropriate user license type. The settings page for the new permission set opens.
Select Object Settings.
Select the objects and fields that you want the connecting user, and therefore Fivetran, to have access to. The default setting is No Access.
The only permissions relevant to Fivetran are that we can read the data, though the user themselves may need to be able to do more. Read permission grants access to view records that are created by that user or are shared using rules, roles, or manual sharing. View All permission grants access to all records of that type (for example, the Account type).
To enable the user to access all the files in the org, provide the user with the Query All Files permission. Without the Query All Files permission, Fivetran can't sync all the records from the
ContentNote,ContentDocument,ContentDocumentLink, andContentVersionobjects.Enable the View Setup and Configuration permission. This permission gives us access to the Limits resource, which lets us check your API limits and optimize syncs.
Go to Administer > Manage Users > Users and select the user account that you want to connect to Fivetran.
Scroll down to Permission Set Assignments and click Edit Assignments.
Move your permission set (for example,
Fivetran Permissions) from Available Permission Sets to Enabled Permission Sets.Click Save.
Configure AWS PrivateLink (optional, Custom App only)
Complete this step only if you want to connect using Connect via PrivateLink. PrivateLink connections always use a Custom App, so complete the Create external client app step as well. mTLS isn't supported with PrivateLink.
Prerequisites
To set up AWS PrivateLink, you need:
- A Business Critical plan
- A Fivetran instance configured to run in one of the AWS regions supported by Salesforce Private Connect
- A Salesforce Private Connect license
Set up AWS PrivateLink
Expand for instructions
To set up AWS PrivateLink, do the following:
Log in to your Salesforce Private Connect service.
Send your Service Name to our support team. Fivetran uses that service name to configure the Interface Endpoint.
Service names are the same across all Salesforce accounts.

We provision our AWS infrastructure for the inbound connection. The infrastructure looks similar to any other PrivateLink client and consists of an Interface Endpoint, Security Group, and Route53 CNAME in the corresponding region. We use the provided Private Connect service name to configure the Interface Endpoint.
We provide you with the Interface Endpoint ID. Use that ID to create an Inbound connection in your Salesforce dashboard.
Salesforce may charge you extra for this new connection.

Select Actions > Sync to verify that the inbound connection is configured properly.
Select Actions > Provision to provision the connection.
Send your Domain Name to our support team. We use that domain name in the provisioned Route53 CNAME record, which maps the name to our Interface Endpoint URL.
You can find your domain name on the My Domain Settings page of your Salesforce dashboard.
Finish setting up your Salesforce connection as usual. The My Domain name automatically maps to the Interface Endpoint URL.
Finish Fivetran configuration
Fivetran has two separate connectors for Salesforce. Choose the connector for the environment you want to use:
- Production environment
- Sandbox environment
In the connection setup form, enter the Destination schema name of your choice.
In the Destination names field, choose the naming convention you want Fivetran to use for the schemas, tables, and columns in your destination:
- Fivetran naming: Standardizes the schema, table, and column names in your destination according to the Fivetran naming conventions.
- Source naming: Preserves the original schema, table, and column names from the source system in your destination.
- The Source naming feature is not compatible with Quickstart transformations. To ensure successful syncs, we automatically disable Quickstart transformations for connections configured with Source naming.
- If you want to modify your selection, make sure you do it before you start the initial sync.
(Hybrid Deployment only) If your destination is configured for Hybrid Deployment, the Hybrid Deployment Agent associated with your destination is pre-selected for the connection. To assign a different agent, click Replace agent, select the agent you want to use, and click Use Agent.
(Only shown if your account is on AWS, has the PrivateLink permission, and your destination doesn't use Hybrid Deployment) In Connection Type, select how Fivetran connects to Salesforce:
- Connect directly
- Connect via PrivateLink: Make sure you have completed Configure AWS PrivateLink. PrivateLink connections always use a Custom App, and mTLS isn't supported.
If the field isn't shown, the connection is direct.
For direct connections, in Salesforce Integration Method, select Fivetran App or Custom App. If you connect using PrivateLink, the setup form doesn't show this field and shows the Custom App fields instead. For more information, see Choose the Salesforce Integration Method. Depending on the option you chose:
For Fivetran App, click Authorize and log in to your Salesforce account.
We recommend logging in while in Incognito mode to ensure authorization of the correct account.
For Custom App, do the following:
(Only shown if your account has an External Secrets Manager) To manage your credentials outside of Fivetran, complete the External Secrets Manager fields.
In Grant type, select Client Credentials or JWT Bearer. Depending on the grant type you chose:
For Client Credentials:
In the Client ID field, enter the Consumer Key for your configured External Client App.
In the Client secret field, enter the Consumer Secret for your app.
(Optional, direct connections only) To add a layer of security with mutual TLS, set the Use mutual TLS (mTLS) toggle to ON, and then do the following:
- In the CA-Signed Certificate or Public Key field, upload the CA-signed certificate file (
.pem). - In the Private key field, upload the private key file (
.key).
For instructions to generate these files and enable mutual authentication in Salesforce, see our Mutual Authentication (mTLS) documentation.
- In the CA-Signed Certificate or Public Key field, upload the CA-signed certificate file (
mTLS is available only with the Client Credentials grant and isn't supported with PrivateLink. The toggle isn't shown for JWT Bearer or PrivateLink connections.
For JWT Bearer:
In the Client ID field, enter the Consumer Key for your configured External Client App.
In the JWT private key field, upload the matching RSA private key in PEM format as a
.keyfile. Upload the public certificate to Salesforce, not Fivetran. For more information, see Generate key and certificate for JWT Bearer.In the Salesforce integration user field, enter the exact Salesforce Username of the user you pre-authorized in the app's policies. This may differ from their email address. A client secret isn't required for JWT Bearer.
Provide your My Domain URL:
- In Salesforce, go to Setup > My Domain.
- Make a note of the My Domain URL for your target org.
- In the My Domain URL field in the Fivetran setup form, enter the URL, including
https://.
For example, use
https://MyDomainName.my.salesforce.comfor production orhttps://MyDomainName--SandboxName.sandbox.my.salesforce.comfor a sandbox.
(Beta) If you want to sync Salesforce Files, set the Sync Salesforce Files to your destination's object storage toggle to ON. To use file sync, enable the
ContentVersion,ContentDocument, andContentDocumentLinktables. For more information, see Salesforce Files.- This feature is available only for connections that are set up for destinations supporting unstructured file replication.
- File syncing isn't supported for connections using Hybrid Deployment.
(Optional) To configure advanced settings, set the Show Advanced Options toggle to ON. This toggle is shown for all connections. Then, configure the following settings:
(Optional) To sync formula fields directly, set the Sync formula fields directly (not recommended) toggle to ON.
(Optional) In the Max Salesforce API usage (%) field, enter the percentage of your daily Salesforce API limit that you want Fivetran to use. The value must be between 50% and 90%. For faster syncs, we recommend setting it to at least 75%.
(Optional) To include inactive records in your transformation-based formula models, set the Include inactive records in formula field models toggle to ON. Review the limitations for inactive records before enabling this option.
Click Save & Test. Fivetran will take it from here and sync your data from your Salesforce account.
Fivetran tests and validates the Salesforce connection. On successful completion of the setup tests, you can sync your Salesforce data to your destination.
Setup tests
Fivetran performs the following Salesforce connection tests:
The Verifying the input
My DomainURL test validates that the My Domain URL you entered useshttpsat the beginning and ends withmy.salesforce.comwith no additional path. We perform this test only for connections that use a Custom App. We skip this test for connections that use the Fivetran App.The Validating Private Connectivity test checks that the My Domain URL resolves to a private IP address, confirming your PrivateLink connection is correctly configured. We perform this test only when using the Connect via PrivateLink connection method. We skip this test for direct connections.
The Validating REST API call limit test verifies that the value you entered in the Max Salesforce API usage (%) field is between 50% and 90%.
For JWT Bearer, the Verifying the Jwt field inputs test checks that you provided a Client ID, integration username, and private key. If the key is missing, upload it again.
The Connecting to API test establishes a connection to the Salesforce API and validates your credentials. For JWT Bearer, it validates authentication with Salesforce using the Client ID, integration username, and private key.
For Salesforce Sandbox connections, the test establishes a connection to the Salesforce Sandbox API and validates your credentials.
The tests may take a couple of minutes to finish running.