Skip to main content
Skip table of contents

OAuth Settings

Enable OAuth and API Access for Salesforce Connected App

To establish a secure connection with Salesforce using the OAuth method, follow these steps to configure your Connected App with the required OAuth and API settings.

Enable OAuth and Client Credentials Flow

  1. Go to Setup in Salesforce.

  2. In the Quick Find box, search for and open App Manager.

  3. Locate your Connected App, click the dropdown arrow, and select Edit.

  4. Under the API (Enable OAuth Settings) section, check the following:

    • Enable Client Credentials Flow

      image-20240806-061523.png
  5. Review and accept the warning regarding security implications.

  6. Click Save.

Assign an Execution User

The Client Credentials Flow does not involve user interaction. However, Salesforce requires you to specify an Execution User, who will be associated with the issued access tokens.

To set the Execution User:

  1. In the Connected App detail page, click Manage.

  2. Click Edit Policies.

  3. Under Client Credentials Flow, in the Run As field, click Search.

    image-20250709-090750.png
  4. Select the user you want to assign as the execution user.

Recommendation: For Enterprise Edition, select a user who has the API Only User permission.

  1. Ensure the Enable User Provisioning checkbox is selected.
    This must always remain checked to allow proper access and token generation.

  2. Click Save to apply the changes.

“Permitted Users” settings such as All users may self-authorize or Admin approved users are pre-authorized do not apply to execution users in this flow.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.