POST

/api/integrations/identity/users/{user}/revoke

Beta

Revoke (mode full) or restrict (mode restrict) a person's access now. Frozen first, then sessions, credentials, permissions, sharing and break-glass are ended and each is verified. Needs identity:revoke.

Parameters

NameInRequiredDescription
userpathtrueEmail or external identity id.
reason, mode, dryRunbody (POST)reason recommendedmode is full or restrict. With dryRun the Digital Twin impact preview is returned and nothing changes.

Response

{ revocation: { state: REVOCATION_COMPLETE | REVOCATION_PARTIAL | REVOCATION_FAILED, steps } }. The last active owner cannot be revoked (409 LAST_OWNER).

Example

curl -H "Authorization: Bearer $INAYA_API_KEY" \
  "https://app.inaya.network/api/integrations/identity/users/REPLACE_ME/revoke"