Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article helps troubleshoot common issues encountered when calling the Microsoft Entra ID SCIM APIs for user and group management.
Error: 401 – Invalid authentication token
Symptoms
SCIM API requests return:
HTTP 401 Unauthorized
Cause
The request does not include a valid access token in the HTTP Authorization header.
Resolution
- Confirm that the request includes a Bearer token in the HTTP
Authorizationheader. - Validate the access token by using https://jwt.ms/
- Verify the following token claims:
iatexp
- If the issue persists:
- Collect details of the failing API call
- Create a support ticket
Error: 403 – Forbidden
Symptoms
SCIM API requests return:
HTTP 403 Forbidden
Cause
The app registration used by the SCIM API client does not have the required API permissions or does not have admin consent granted.
Resolution
- Review the app registration used by the SCIM API client.
- Confirm that the Microsoft Graph API permissions as documented in Microsoft Entra ID SCIM API reference are assigned:
- Confirm that Admin Consent has been granted for all assigned permissions.
- If the issue persists:
- Collect API request details
- Create a support ticket
Error: 404 – Resource not found
Symptoms
The following API calls return:
HTTP 404 Not Found
GET /users/{id}GET /groups/{id}
Cause
The {id} value in the request does not resolve to a valid user or group object in the Microsoft Entra ID tenant.
Resolution
- Confirm that the
{id}value exists in the Microsoft Entra ID tenant. - If the issue persists:
- Collect API request details
- Create a support ticket
Error: 400 – Bad request
Symptoms
SCIM API requests return:
HTTP 400 Bad Request
This error may occur during:
- User create or update operations
(POST /UsersorPATCH /Users) - Group create or update operations
(POST /GroupsorPATCH /Groups) - User or Group filter queries
(GET)
Cause
The request payload or query parameters do not meet the constraints defined for the SCIM API or reference invalid SCIM schema attributes.
Resolution
- For
POSToperations:- Ensure all required attributes are included in the request payload.
- For
PATCHoperations:- Ensure that the request complies with SCIM API constraints.
- For
GEToperations:- Confirm that only supported API filters are used.
- Ensure that request attributes map to valid Microsoft Entra SCIM schema attributes.
- Resend the request with corrections.
- If the issue persists:
- Collect API request details
- Create a support ticket
Error: 400 – SCIM Provisioning API feature not enabled
Symptoms
SCIM API requests return:
HTTP 400 Bad Request
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"detail": "No 'scimapiconsumptions' resource found for TenantId: <tenant-id>. Please ensure 'SCIM Provisioning API' feature is enabled and only one 'scimapiconsumptions' resource exists.",
"status": "400"
}
Cause
The SCIM Provisioning API feature is not enabled in the Microsoft Entra admin center, or the billing subscription required for the feature has not been linked. The Azure resource is created when an administrator turns on the feature and links an Azure subscription for billing. Without this resource, the SCIM service rejects all API calls.
Resolution
- Sign in to the Microsoft Entra admin center.
- Navigate to ID Governance > Dashboard.
- On the SCIM Provisioning API tile, select Get Started (or Edit if previously configured).
- Link an Azure subscription, select a resource group, and select Turn on.
- After the feature is enabled, retry the SCIM API request.
For detailed steps, see Enable the SCIM Provisioning API.
Error: 500 – Internal server error
Symptoms
SCIM API requests return:
HTTP 500 Internal Server Error
Cause
An unexpected server-side error occurred while processing the SCIM API request.
Resolution
- Collect details of the failing API call.
- Create a support ticket.
Error: 504 – Gateway timeout
Symptoms
SCIM API requests return:
HTTP 504 Gateway Timeout
Cause
Intermittent 504 responses may be returned by the SCIM service.
Resolution
- Collect details of the failing API calls and time window for the errors.
- Create a support ticket if the issue persists.
SCIM API error code reference
The following table lists all error codes that the Microsoft Entra ID SCIM APIs can return. Use this table to identify the error and its cause when troubleshooting SCIM API requests.
Note
Not all error codes apply to every API endpoint. For example, BadRequest (400) interpretation could vary depending on the request payload associated with the API endpoint. Refer to the Microsoft Entra ID SCIM API reference for endpoint-specific details.
| Error | Condition | HTTP Status Code |
|---|---|---|
| BadRequest | Request payload or query parameters don't meet SCIM API constraints, required attributes are missing, or invalid SCIM schema attributes are referenced. | 400 |
| BadRequest | SCIM Provisioning API feature is not enabled or the billing subscription is not linked. The error detail references a missing Azure resource. | 400 |
| BadRequest | HTTP Accept header for application/json is missing | 400 |
| InvalidAuthenticationToken | Access token is empty or invalid. | 401 |
| InsufficientPrivileges | Insufficient permission to complete the operation. | 403 |
| ResourceNotFound | Invalid URN or the specified resource doesn't exist in the tenant. | 404 |
| InternalServerException | Service failed to process the request. | 500 |
| GatewayTimeout | The SCIM service didn't respond within the expected time. | 504 |