Create a Connected App for the OAuth 2.0 Client Credentials Flow

Create a connected app to request access to exchange the client credentials defined in the connected app, the consumer key and consumer secret, for an access token. Before you implement the client credentials flow, configure these settings and access policies for your connected app.

  1. From Setup, in the Quick Find box, enter App Manager, and then select App Manager.
  2. Click New Connected App.
  3. Enter the basic information.
    1. Enter the name of your connected app.
    2. Keep the default API name, which is automatically filled based on the connected app name.
    3. Enter your email address.
  4. Under API (Enable OAuth Settings), select Enable OAuth Settings.
  5. If the Callback URL isn’t auto-populated, enter a URL where Salesforce can send OAuth2 responses. For example,
  6. Add the Manage user data via APIs (api) scope to the Selected OAuth Scopes list.
  7. Select Enable Client Credentials Flow.
  8. Read the information about the risks and click the warning.
  9. Click Continue to save the new connected app.
  10. On the new connected app, click Manage.
  11. Click Edit Policies.
  12. Under Client Credentials Flow, for Run As, clickSearch and select the user that you want to assign the client credentials flow to.
  13. Save your changes.

See Also

Connected Apps