Take the following steps to obtain the client ID, the client secret, and the scope.

  1. Sign in to Salesforce.

    https://login.salesforce.com

  2. Navigate to the Setup page.
  3. Navigate to Apps > App Manager.
  4. Select the application for which you are obtaining the client ID and secret from the list of Connected Apps.
  5. For the scopes, navigate to API (Enable OAuth Settings) > Selected OAuth Scopes.

    In most cases, the client application will be granted full access to Salesforce resources at any time. In this scenario, the following scopes would be specified:

    • Full access (full): Allows access to all data accessible by the logged-in user, and encompasses all other scopes.
    • Perform requests at any time (refresh_token, offline_access): Allows a refresh token to be returned when the requesting client is eligible to receive one.
    Note: You will need to specify scopes if you use are using the authorization code flow to obtain access and refresh tokens, as described in Obtaining access and refresh tokens with Postman.
  6. For the client ID and client secret (Consumer Key and Consumer Secret), click Manage Consumer Details.
    Note: The values for the client ID and secret should be saved to a secure location. You will need to specify these values for the Client ID and Client Secret connection options.

Results:

You have obtained the OAuth client ID and client secret.