ZITADEL Docs
APIsCore ResourcesV1Organization Objects

DeactivateUser

Deactivate User

Deprecated: use user service v2 DeactivateUser instead.

The state of the user will be changed to 'deactivated'. The user will not be able to log in anymore. The endpoint returns an error if the user is already in the state 'deactivated'. Use deactivate user when the user should not be able to use the account anymore, but you still need access to the user data.

POST
/users/{id}/_deactivate

Path Parameters

id*string

Response Body

application/json

application/json

curl -X POST "https://loading/users/string/_deactivate"
{
  "details": {
    "sequence": 0,
    "creationDate": "1s",
    "changeDate": "1s",
    "resourceOwner": "string"
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?