Slack Provisioning Error "Could not get the OAuth Token for the appInstanceId"
Last Updated:
Overview
Slack provisioning flow fails with the following error visible in the Okta dashboard:
Automatic provisioning of user <user's name> to app RingCentral failed: Could not get the OAuth Token for the appInstanceId=***********.
Applies To
- Slack
- Okta Integration Network
- Provisioning
Cause
The error is reported by Slack to Okta.
- It may be generated when the OAuth token granted for the API integration expires after some time and gets invalidated.
- Another reason could be that another API process is utilized for creating and provisioning users into Slack, using another system, or through Workflows. This can generate conflicts with the API Used and the one from app Provisioning.
Solution
To resolve the above-mentioned error:
- If only the Provisioning feature within the Okta integration is used:
-
- Go to Okta Admin Console and navigate to Applications > Applications > Slack > Provisioning > Integration > click the Edit button.
- Click on Authenticate with Slack.
- A new page will pop up, redirecting to Slack Login.
- Enter the email and the password in the dedicated fields.
- After successfully authenticating, verify the connection was successful, and then click Save.
- Attempt the failed tasks again.
- Navigate to Dashboard > Tasks. Any failed assignments should appear under Tasks.
- If another API is used concurrently, the Provisioning feature or the other API system should be disabled to avoid a conflict of APIs.
-
- To disable the Provisioning, navigate to Applications > Applications > Slack > Provisioning > Integration.
- Uncheck Enable API integration > Save.
