When attempting to test the connection for a System for Cross-domain Identity Management (SCIM)-enabled application or a custom SCIM connector in the Okta Admin Dashboard, the connection test fails. The following error message is displayed:
No results for users returned
This prevents the administrator from successfully enabling provisioning or saving the connector configuration, even if the API endpoint and authorization headers appear correct.
- System for Cross-domain Identity Management (SCIM)
- Application Provisioning
- Custom SCIM Integrations
- Okta Classic Engine
- Okta Identity Engine (OIE)
While the downstream user store does not need to contain users to be "connected," this error indicates that Okta's validation probe did not receive a valid SCIM-compliant response. This is typically caused by:
- Non-Compliant Empty Response: When the downstream store is empty, the server may be returning a
200 OKwith an empty body, a null value, or a simple JSON array[]. Okta expects a full SCIMListResponseobject even when zero results are returned. - Incorrect Base URL Pathing: If the Base URL is configured incorrectly (for example, pointing to the root domain instead of the SCIM endpoint), the server might return a generic success page (HTML) or a different API response that contains no user objects.
- Network Interception: A firewall, proxy, or Load Balancer is successfully receiving Okta's request and returning a
200 OK, but it is not passing the request to the actual SCIM server, or it is stripping the response payload.
Follow the steps mentioned below to resolve the issue:
- Validate the SCIM Response Format: Confirm that the downstream server returns a properly formatted SCIM
ListResponsewhen no users are present. Use a tool like Postman to check the raw response. It must look like this:{ "schemas": ["urn:ietf:params:scim:api:messages:2.0:ListResponse"], "totalResults": 0, "startIndex": 1, "itemsPerPage": 0, "Resources": [] }NOTE: If the
Resourcesfield is missing or the schemas array is incorrect, Okta will throw the error. -
Verify the Base URL: Ensure the Base URL in the Provisioning tab does not include
/Users. Okta automatically appends/Usersto the Base URL during the connection test.
-
- Correct:
https://api.example.com/scim/v2 - Incorrect:
https://api.example.com/scim/v2/Users
- Correct:
- Check Content-Type Headers: The SCIM server must return a header of
Content-Type: application/scim+jsonorapplication/json. If the server returnstext/html(common with proxy intercepts), the connection test will fail. - Isolate Network Intermediaries: Check Load Balancer or WAF logs to see if the request from Okta is being terminated early. Ensure that the
GETrequest with query parameters (filters) is being allowed through to the application.
