---
updatedAt: 2026-08-18T04:57:37.000Z
agentTools:
  projectIndex: https://help.zluri.com/llms.txt
---

# Connect Salesforce (Client-Credential Flow)

Connect Salesforce (Client-Credential Flow) to Zluri

Zluri has two Salesforce connectors. This **Form Based** connector authenticates using the OAuth 2.0 **Client Credentials** flow (server-to-server). You create your own Connected App, enable the Client Credentials Flow, and assign a Run-As user. No Salesforce username, password, or security token is required.

There are two versions of Salesforce, **Classic** and **Lightning Experience**, and the steps to create the OAuth application differ slightly. Both are described below. The **Run-As user** step (after the app is created) is the same for both.

## Prerequisites

* Administrator access to the Salesforce org with permission to create and manage Connected Apps.

## Salesforce Lightning

1. Sign in to the Salesforce account.

2. Select **Setup**.

   <Image src="https://files.readme.io/ee26025-9.png" align="center" />

3. In the **Search Setup** box at the top of the screen, type **App Manager**.

4. Select **App Manager**.

   <Image src="https://files.readme.io/ad5471d-10.png" align="center" />

5. Select **New Connected App** under **External Client Apps > Settings**.

   <Image src="https://files.readme.io/c8aed99caccfde4d85fc7b077d06fb90c324dbc38bf6e574dcd69ac0cc05de90-image.png" align="center" />

6. A new screen appears for creating the connected app.

7. Provide a suitable **Name**, **API Name**, and **Contact Email**.

   <Image src="https://files.readme.io/39a32a3-12.png" align="center" />

8. Select the **Enable OAuth Settings** checkbox.

9. Add the following callback URL: <https://zluri.com>

10. In **Selected OAuth Scopes**, add the following scopes:

    * Manage user data via APIs (api)
    * Access Connect REST API resources (chatter\_api)
    * Perform SQL queries on Data Cloud data (cdp\_query\_api)

    <Image src="https://files.readme.io/da8565293fa70316fef9964e2891866eb2985fed17f5f18a45b73187bdab0505-image_12.png" align="center" />

11. Select **Enable Client Credentials Flow** and accept the alert that appears.

    <Image src="https://files.readme.io/d3d51b043ae4267a498b8c161076909df006968302278e10cc50984d78b292c7-image_13.png" align="center" />

12. Scroll to the bottom and select **Save**, then select **Continue**.

    <Image src="https://files.readme.io/9a9b31a-14.png" align="center" />

## Assign the Run-As user (required for Client Credentials Flow)

1. Open the Connected App's detail page, select **Manage**, then select **Edit Policies**.

   <Image src="https://files.readme.io/4ccdee56bc04a919cd2986d16cd859b3196f3b22a0e237aa58e0a696830815a3-image_14.png" align="center" />

2. In the **Client Credentials Flow** section, use the **Run As** lookup field to select the integration user in the org, then select **Save**.

   <Image src="https://files.readme.io/bb509f7059a873d2725f33ab6789bd41c54f7701467257fcf1373936f42fa1d8-image_15.png" align="center" />

<Callout icon="⚠️" theme="warn">
  ### The Run-As user's permissions govern what Zluri can read. Assign a least-privilege user with read access to Users, LoginHistory, Permission Set Licenses, and (if syncing roles) Permission Sets. Use it only for this integration, never for interactive UI logins.
</Callout>

## Salesforce Classic

1. Sign in to the Salesforce account.

2. Select **Setup**.

   <Image src="https://files.readme.io/e04a3c7-1.png" align="center" />

3. In the **Quick Find / Search** box on the left, type **app**, then under the **Create** section select **Apps**.

   <Image src="https://files.readme.io/ab252e6-2.png" align="center" />

4. In the **Connected Apps** section, select **New**.

   <Image src="https://files.readme.io/8dea332-4.png" align="center" />

5. Provide a suitable **Name**, **API Name**, and **Contact Email**.

6. Select the **Enable OAuth Settings** checkbox.

7. Add the callback URL: <https://zluri.com>

8. In **Selected OAuth Scopes**, add the following scopes:
   * Manage user data via APIs (api)
   * Access Connect REST API resources (chatter\_api)
   * Perform SQL queries on Data Cloud data (cdp\_query\_api)

9. Select **Enable Client Credentials Flow** and accept the alert that appears.

10. Scroll to the bottom, select **Save**, then select **Continue**.

    <Image src="https://files.readme.io/b53ef25-6.png" align="center" />

## Assign the Run-As user (required for Client Credentials Flow)

1. Open the Connected App's detail page, select **Manage**, then select **Edit Policies**.

   <Image src="https://files.readme.io/a571066309c1b7013aea51547f68a8bf25e8980643f3876e04b1dcdef64d343c-image_14.png" align="center" />

2. In the **Client Credentials Flow** section, use the **Run As** lookup field to select the integration user in the org, then select **Save**.

   <Image src="https://files.readme.io/a7cf424058627894443ad793d9c55e68aa37b1f7cac0ee11553a677c78f3227d-image_15.png" align="center" />

<Callout icon="⚠️" theme="warn">
  ### The Run-As user's permissions govern what Zluri can read. Assign a least-privilege user with read access to Users, LoginHistory, Permission Set Licenses, and (if syncing roles) Permission Sets. Use it only for this integration, never for interactive UI logins.
</Callout>

## Get your credentials and connect

1. On the Connected App details page, locate the **Consumer Key** and **Consumer Secret**.

   <Image src="https://files.readme.io/f1885ad-15.png" align="center" />

2. In Zluri, enter these values to connect:
   * **Consumer Key**: from the Connected App.
   * **Consumer Secret**: from the Connected App.
   * **Sub-Domain**: the Salesforce My Domain label (for example, for `https://zluri.my.salesforce.com` the sub-domain is `zluri`).
   * **License Types** *(optional)*: a comma-separated list to filter users by license type.

## Reference

For more details on the Client Credentials Flow, refer to the <Anchor target="_blank" href="http://help.salesforce.com/s/articleView?id=000886201&type=1">official Salesforce documentation.</Anchor>

Got questions? Feel free to [submit a ticket](https://support.zluri.com/support/tickets/new) or contact us directly at <support@zluri.com>.