When attempting to configure, update, or test the SCIM connection for the OneTrust application in Okta, the connection fails. Okta displays a red error dialog stating:
Error authenticating: Unauthorized. The connector configuration could not be tested. Make sure that the URL, Authentication Parameters are correct and that there is an implementation available at the URL provided.
Consequently, automated user provisioning, profile updates, and group synchronizations fail to push to OneTrust.
- Okta Integration Network
- Okta Classic Engine
- Okta Identity Engine (OIE)
- System for Cross-domain Identity Management (SCIM)
- User Provisioning (SCIM)
- OneTrust Integration
- API Integration and Authentication
This error occurs because the credentials in the Okta SCIM configuration do not have the required scopes to authenticate against OneTrust's identity management endpoints.
Standard OneTrust API keys or keys generated without explicit application-level permissions are automatically rejected with a 401 Unauthorized status. To securely handle user identity management, OneTrust requires an OAuth 2.0 API Key explicitly created with the SCIM scope enabled.
To restore the connection, generate a dedicated SCIM-scoped token in OneTrust and update Okta with the new credential. Follow these steps:
- Generate a SCIM-Scoped API Key in OneTrust:
- Log in to the OneTrust Admin Console with administrator privileges.
- Navigate to Global Settings > Access Management > Client Credentials.
- Select the API Keys tab and click Add.
- Configure the new credential as an OAuth 2.0 API Key.
- In the scope selection, explicitly check the SCIM scope box.
- Click Save and copy the API key immediately. Store it securely, as it will not be displayed again.
- Update the SCIM Configuration in Okta:
- Log in to the Okta Admin Console and open the OneTrust application instance.
- Navigate to the Provisioning tab and click on the Integration section in the left menu.
- Locate the HTTP Header/Authorization section.
- Clear the existing masked characters from the token input field.
- Paste the newly generated OneTrust API key directly into the field.
- NOTE: Because the Okta UI features a separate, grayed-out "Bearer" prefix box next to the input field, paste only the raw alphanumeric token string. Do not manually type the word "Bearer" into the text field.
- Click Test Connector Configuration to verify that the authentication error is resolved.
- Click Save.
