<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Salesforce Provisioning Error "Automatic provisioning of user to app Salesforce failed: The credentials used to connect to the API were invalid; please check your configuration"
Okta Integration Network
Overview

Salesforce Application integration configured to use REST APIs to authenticate using OAuth.
Salesforce provisioning flow fails with the following error visible in the Okta dashboard:

Automatic provisioning of user <user> to app Salesforce failed: The credentials used to connect to the API were invalid; please check your configuration
 

Error Message
Applies To
  • Salesforce
  • Provisioning
Cause
This error is generated because the credentials used for creating the API connection are invalid.
Solution

Follow the steps or video below.


 

  1. Go to the Okta admin panel and navigate to Applications > Applications > Salesforce > Provisioning > Integration > Edit.
  2. Enter the OAuth Consumer Key and OAuth Consumer Secret. See Configure OAuth and REST integration for more details.

    1. OAuth Consumer Key: Consumer Key from the Salesforce OAuth settings.

    2. OAuth Consumer Secret: Consumer Secret from the Salesforce OAuth settings.

  3. Click Re-authenticate with Salesforce.com.

Re-authenticate with

  1. In the new Salesforce.com window, enter the administrator username and password that were used to create the Connected OAuth App.

  2. Click Allow to permit access to the Connected App.

  3. On the Provisioning page in Okta, a confirmation message indicating successful authentication will be displayed. Click Save.
  4. Afterward, attempt the user provisioning again. Navigate to Dashboard > Tasks. Any failed assignments should appear under Tasks.

Tasks

  1. After identifying the failed task for the user that should be retried, click on Retry Selected.

 

Related References

Loading
Salesforce Provisioning Error "Automatic provisioning of user to app Salesforce failed: The credentials used to connect to the API were invalid; please check your configuration"