ZITADEL Docs
APIsCore ResourcesV1Organization Objects

DeactivateUserGrant

Deactivate User Grant

Deprecated: Deactivate an authorization to disable a user's access to an owned or granted project.

Deactivate the user grant. The user will not be able to use the granted project anymore. Also, the roles will not be included in the tokens when requested. An error will be returned if the user grant is already deactivated.

POST
/users/{user_id}/grants/{grant_id}/_deactivate

Path Parameters

user_id*string
grant_id*string

Response Body

application/json

application/json

curl -X POST "https://loading/users/string/grants/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?