Skip to content

Salesforce

Connect Salesforce to Trustle to get insight into over-privileged and unused accounts, and to adopt just-in-time access management.

  1. Go to Setup → Apps → External Client Apps → External Client App Manager.

    External Client App Manager

  2. Click New external client app.

    Click New external client app

  3. Fill in the required fields under Basic Information.

    Fill in Basic Information fields

  4. Enable OAuth settings under API → Enable OAuth, and set:

    • Callback URL: https://console.trustle.io/salesforce-callback. Trustle doesn’t use this URL, but Salesforce requires it.
    • OAuth Scopes: Manage user data via APIs (api).
    • Flow Enablement: Enable Client Credentials Flow.
    • Security: Keep the defaults.

    Enable OAuth settings

  5. Create the app.

Step 2: Create the Service Account Permission Set

Section titled “Step 2: Create the Service Account Permission Set”
  1. Go to the Permission Set panel (Administration → Users → Permission Set).

    Open the Permission Set panel

  2. Click New at the top of the table.

    Click New permission set

  3. Give the permission set a name, for example “Trustle Integration Permission Set”.

    Name the permission set

  4. Save it.

  5. Go to System → System Permissions on the new permission set’s page.

    Open System Permissions

  6. Edit the permissions and enable Api Enabled.

    Enable Api Enabled

  7. Enable Manage Users too (Users → Manage Users).

    Enable Manage Users

  8. Save it.

Step 3: Create and Configure the Service Account

Section titled “Step 3: Create and Configure the Service Account”
  1. Go to the Users Administration page (Administration → Users → Users).

    Open Users Administration

  2. Create the service account user. Set it to the Minimum Access - Salesforce profile (Salesforce User License).

    Create the service account user

  3. Go to the service account user’s page after you create the user. Add the permission set there (User → Permission Set Assignments → Edit Assignment).

    Edit permission set assignment

  4. Add the Trustle permission set and save it.

    Add the Trustle permission set

Step 4: Update the External Client App Policies

Section titled “Step 4: Update the External Client App Policies”
  1. Open the external client app page. Salesforce redirects you here after you create the app.

    External Client App page

  2. Click to edit the policies.

    Edit policies

  3. Enable the Client Credentials Flow and set Run As (Username) to the Trustle service account.

    Enable Client Credentials Flow and set Run As

  1. Go to the Settings tab on the external client app page.

    Open the Settings tab

  2. Open OAuth Settings and click the button to get the Consumer Key and Secret.

    Open OAuth Settings

  3. Verify your identity.

    Verify your identity

  4. Get the Consumer Key and Consumer Secret.

    Consumer Key and Consumer Secret

  1. Go to Setup → Settings → My Domain.

    Open My Domain settings

  2. Find the My Domain Details section on this page.

    My Domain Details

  3. The domain is the part of your Current Domain URL before .salesforce.com.

    For example, if the Current My Domain URL is orgfarm-5a7dad8e67-dev-ed.develop.my.salesforce.com, the domain is orgfarm-5a7dad8e67-dev-ed.develop.my.

  1. Go to the Connections page in Trustle from the left menu.
  2. Under Identity Providers, find the Salesforce logo and click Connect.
  3. Provide the Consumer Key and Consumer Secret from Get the App Credentials, and the domain from Get the Company Domain.
  4. Click Test Connection.
  5. Click Save Connection after the connection test succeeds.