Connecting Salesforce with an application user
Connect Revial to Salesforce with no interactive sign-in, using your own External Client App and an API-only integration user (OAuth client credentials).
With an application user, Revial connects to Salesforce without anyone signing in. Your Salesforce administrator creates an External Client App in your own org and gives it a Run As user. Revial then requests its own access tokens with the app's consumer key and secret (the OAuth 2.0 client credentials flow).
Choose this instead of signing in with Salesforce when:
- your security policy expects integrations to use a non-human, API-only identity;
- your administrators sign in with phishing-resistant MFA (a passkey or security key), or through SSO policies that an OAuth sign-in cannot complete;
- you don't want the connection to depend on one person's account.
The connection acts as the Run As user and sees only what that user's permission sets, sharing rules and field-level security allow. Everything Revial reads and writes is the same as with sign-in — see What Revial syncs with Salesforce.
Requirements
- Revial role: Admin or Owner in your organisation.
- Revial plan: one that includes the CRM integration (Medium or Sales).
- Salesforce edition: Enterprise, Unlimited, Performance or Developer.
- A Salesforce administrator who can create users, permission sets and an External Client App. They need to be signed in to Salesforce to set it up, but never sign in to Revial with it.
Revial does not need System Administrator rights, "Modify All Data" or any package installed in your org.
Part 1 — In Salesforce (your administrator)
Step 1 — Create the integration user
- Go to Setup → Users → Users and click New User.
- Set User License to Salesforce Integration and Profile to Minimum Access - API Only Integrations. Enterprise, Unlimited and Performance editions include five Salesforce Integration licences at no extra cost.
- Use a recognisable username, for example
revial.integration@yourcompany.com, and save.
This user cannot sign in to the Salesforce UI, so it is not affected by your MFA or SSO policies.
Step 2 — Give the user access
Create a permission set (Setup → Permission Sets → New) and assign it to the integration user. The user also needs the Salesforce API Integration permission set licence assigned on their user record.
| Revial needs to… | Grant in the permission set |
|---|---|
| Use the API | API Enabled (System Permissions) |
| Read accounts, contacts, leads and opportunities | Read on Accounts, Contacts, Leads and Opportunities (Object Settings) |
| Read events, tasks, notes, contact roles and stages | Nothing extra. These have no object settings of their own: the user sees them through its access to the related account, contact, lead or opportunity |
| Read emails | Read on Email Messages (Object Settings) |
| File meeting summaries as tasks | Edit Tasks (System Permissions) |
| Write fields you map in Revial | Edit on the object those fields are on (Accounts, Contacts or Opportunities), plus field-level Edit on those fields only |
| Visit Reports (only if Revial has set them up for your org) | Read, Create and Edit on the Visit Report object with field-level Edit on the fields Revial fills, and Edit Events (System Permissions) |
An API-only integration user starts with no access at all, so each of these has to be granted. The two that are easy to miss:
- Edit Tasks. Without it, meeting summaries are never filed in Salesforce.
- Read on Email Messages. Revial reads emails on every sync. Without access, Salesforce rejects the query and the activity sync fails, so grant it even if you don't plan to use email content.
The user sees records through your sharing settings like any other user. If it should see all accounts and opportunities, give it View All on those objects in the same permission set rather than broader system permissions. For the full list and what happens when a permission is missing, see the Salesforce technical integration guide.
Step 3 — Create the External Client App
New connected apps are disabled by default in recent Salesforce releases, so use an External Client App.
- Go to Setup → External Client App Manager and click New External Client App.
- Give it a name (for example
Revial) and a contact email. Set Distribution State to Local. - Under API (Enable OAuth Settings), tick Enable OAuth.
- Callback URL: Salesforce requires one, but the client credentials flow
never uses it. Enter
https://login.salesforce.com/services/oauth2/callback. - OAuth Scopes: add Manage user data via APIs (api). No other scope is needed.
- Flow Enablement: tick Enable Client Credentials Flow.
- Callback URL: Salesforce requires one, but the client credentials flow
never uses it. Enter
- Create the app.
- Open its Policies tab and click Edit. Under OAuth Flows and External Client App Enhancements, tick Enable Client Credentials Flow and set Run As (Username) to the integration user from Step 1.
- Set Permitted Users to Admin approved users are pre-authorized and save.
Salesforce can take a few minutes to apply a new app.
Step 4 — Collect what Revial needs
| Value | Where to find it |
|---|---|
| My Domain URL | Setup → My Domain → Current My Domain URL, for example https://acme.my.salesforce.com. For a sandbox it looks like https://acme--uat.sandbox.my.salesforce.com |
| Consumer key | The app's Settings tab → OAuth Settings → Consumer Key and Secret |
| Consumer secret | Same place. Salesforce asks for a verification code before showing it |
The consumer secret gives API access as the integration user. Enter it straight into the form in Revial (Part 2). Don't send it by email or chat, including to Revial.
Part 2 — In Revial
- Go to Organization → CRM Integrations and find the Salesforce card.
- Click Use an application user instead.
- Enter the My Domain URL, Consumer key and Consumer secret. You can
also paste the address from your browser while you are in Salesforce, either
Lightning (
https://acme.lightning.force.com) or Setup (https://acme.my.salesforce-setup.com); Revial converts it to your My Domain. - Click Connect application user.
Before saving anything, Revial requests a token from your org with these credentials and makes one API call with it. If either fails, nothing is stored and the form shows what went wrong (see Troubleshooting).
When it succeeds, the card shows Connected and "Connected with an application user". The first sync starts in the background straight away and then runs roughly every hour while Automatic Sync is on in CRM Settings.
Sandbox orgs
Use the sandbox's own My Domain URL. The generic login.salesforce.com and
test.salesforce.com don't support the client credentials flow, so Revial
rejects them.
Managing the connection
Rotating the secret. Generate a new consumer secret in the External Client App, then click Update credentials on the Salesforce card in Revial and enter the new values. The connection, its settings, field mappings and synced data are kept. Update Revial promptly: syncing stops as soon as the old secret no longer works.
When something breaks. If Salesforce stops accepting the credentials (the secret was rotated, the app or the client credentials flow was disabled, or the Run As user was deactivated), syncing stops. An organisation admin or owner in Revial gets a "CRM: Salesforce application credentials invalid" notification, and the card shows Needs attention with a form for new credentials and a Disconnect button. Fix the cause in Salesforce, then enter the credentials again.
Moving to a different org. Credentials for a different Salesforce org are refused while a connection exists. Disconnect first, then connect the new org.
Switching between sign-in and an application user. To move from a signed-in connection to an application user, disconnect and connect again with the application user. Going the other way, disconnect first too.
Disconnecting. Disconnect on the card stops syncing and, in the background, deletes Revial's copy of your Salesforce data, the stored credentials and the connection's settings. Records Revial already wrote stay in Salesforce.
Disconnecting in Revial does not revoke access in Salesforce. To end it, disable the External Client App or deactivate the integration user.
Troubleshooting
| Message | What to do |
|---|---|
| "Enter the org's My Domain URL…" | You entered a generic login host or a non-Salesforce address. Use the address from Setup → My Domain |
| "Could not authenticate with these credentials…" | Check the consumer key and secret, that Enable Client Credentials Flow is ticked in both the app settings and its policies, and that Run As (Username) is set. A new app can take a few minutes to start working |
| "The token was issued but cannot call the Salesforce API…" | The app is missing the api scope, or the integration user lacks API Enabled or the Salesforce API Integration permission set licence |
| "Could not reach Salesforce to validate the credentials…" | A temporary problem reaching Salesforce. Try again in a minute |
| "This team's application user connection is for a different Salesforce org…" | The URL belongs to another org than the existing connection. Disconnect first if you really mean to switch orgs |
| "This team's Salesforce connection uses a signed-in user…" | Disconnect the signed-in connection first, then connect the application user |
| "This Salesforce connection is being disconnected…" | Wait for the disconnection to finish, then try again |
| "You must be a team admin or owner to connect a CRM" | Ask a Revial organisation admin or owner to connect |
Sync problems. Missing records usually mean the integration user can't see them: check its permission set, sharing settings and View All permissions. For other symptoms see the troubleshooting section of Connecting Revial to Salesforce.
Quick guide
- Salesforce: create an integration user (Salesforce Integration licence, Minimum Access - API Only Integrations profile) and give it a permission set with API Enabled, Edit Tasks and Read on the objects above, including Email Messages.
- Salesforce: create an External Client App with the api scope and the client credentials flow enabled, with the integration user as Run As.
- Copy the My Domain URL, consumer key and consumer secret.
- Revial: Organization → CRM Integrations → Salesforce → Use an application user instead → enter the three values → Connect application user.
Connecting Revial to Salesforce
OAuth sign-in, production and sandbox orgs, connected-app approval, and what to do when the connection is blocked.
What Revial syncs with Salesforce
For your Salesforce administrator and whoever reviews the integration's data access — every Salesforce field Revial reads, everything it writes back, and the known gaps.