Document toolboxDocument toolbox

Header

OAuth Settings

Enable OAuth and API (Enable OAuth Settings)- Access Points+ Policies

Establish Connection using OAuth

The below-mentioned changes are required on the Connected App before establishing a connection using OAuth method.

Enable the client credentials flow using the following steps:

  1. Create your Connected App and complete its basic information.

  2. Configure the necessary OAuth settings for the Connected App.

  3. Enable the client credentials flow for your Connected App.

    • From Setup, in the Quick Find box, enter Apps, and then select App Manager.

    • Find your connected app, click, and then select Edit.

    • Under API (Enable OAuth Settings), select Enable Client Credentials Flow.

      image-20240806-061523.png
  4. When you understand the security risks, accept the warning.

  5. Save your changes.

Select an Execution User for the Flow

Although there is no user interaction in the client credentials flow, Salesforce still requires you to specify an Execution User. By selecting an Execution User, you allow Salesforce to return access tokens on behalf of this user.

Permitted Users policies, such as All users may self-authorize and Admin approved users are pre-authorized, don’t apply to the execution user.

Steps to select an Execution User:

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

  2. Go to Edit Policies.

  3. Under Client Credentials Flow, for Run As, click on search, and find the user that you want to assign the client credentials flow. For Enterprise Edition orgs, we recommend that you select an execution user who has the API Only User permission.

  4. Save your changes.

    image-20240806-062020.png

 

Footer