| Condition | Status / action |
|---|---|
| Unknown procedure | 404; verify the procedure name. |
| Invalid input on revokeWorkspaceUserAccess | 400; correct workspaceId and userId. |
| Missing, invalid, rotated or revoked key on revokeWorkspaceUserAccess | 401 when key authentication is reached; replace or correct the key. |
| Wrong workspace or insufficient revoke authority | 403; verify the workspace and current admin authority. A disabled target Workspace API can also return 403. |
| Changing an existing global name through upsertWorkspaceUser | 403: Workspace access updates cannot change existing global account profiles. Omit fullName for access-only updates; use the supported global-profile flow for a name change. |
| Last-admin access removal | 409; ensure another workspace administrator remains. Applies to both revokeWorkspaceUserAccess and legacy deactivated: true requests. |
| Workspace access removal fails due to billing reconciliation | 503; the removal did not complete. Retry after recovery. Applies to both supported revocation methods. |
| Other procedure validation/authentication failures | Generally 500 in current code; inspect the plain-text message and fix the cause. |
| Invalid deactivated value in upsertWorkspaceUser | Generally 500 with deactivated must be a boolean when supplied. Use JSON true or false, not a string, number or null. |
| Unexpected failure | 500; reconcile the outcome before retrying a non-idempotent operation. |
HTTP 400
workspaceId must be a non-empty stable identifier
application/scim+json, the Error schema, a string status and a safe detail. Some also include scimType.
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"status": "400",
"detail": "userName and work email must identify the same source email",
"scimType": "invalidValue"
}
| Status | Typical cause | Action |
|---|---|---|
| 400 | Malformed JSON, unsupported attribute/path/filter, invalid role, conflicting email aliases | Correct the mapping or request. Use only supported fields and equivalent userName/work email. |
| 401 | Missing, invalid, expired, rotated or revoked token; wrong credential type; SCIM capability disabled | Confirm enablement and replace the token as appropriate. The response includes a Bearer challenge. |
| 403 | Insufficient scope, inactive workspace or local admin block | Check setup and contact a workspace admin. SCIM cannot clear a local veto. |
| 404 | Unknown or foreign-source User ID | Use the SCIM ID returned to this provisioning source, not a canonical Workspace API user ID. |
| 405 | Unsupported method, including terminal DELETE | Use active=false for deprovisioning. DELETE changes nothing. |
| 409 | Duplicate create, conflicting correlation or another managing source | Read the existing source-owned User and resolve the conflict; do not create another account blindly. |
| 413 | Request exceeds the 1 MiB body limit | Reduce request size. |
| 415 | Unsupported content type | Use application/scim+json or application/json for writes. |
| 503 | Required billing reconciliation failed | Provisioning did not complete. Retry after the dependency recovers. |
| 500 | Unexpected provisioning failure | Retry cautiously and contact Diggle if repeated. |