ZITADEL Docs
APIsCore ResourcesV1Organization Objects

RemoveUserGrant

Remove User Grant

Deprecated: Delete an authorization to remove a users access to an owned or granted project.

Removes the user grant from the user. The user will not be able to use the granted project anymore. Also, the roles will not be included in the tokens when requested.

DELETE
/users/{user_id}/grants/{grant_id}

Path Parameters

user_id*string
grant_id*string

Response Body

application/json

application/json

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

Was this page helpful?