ZITADEL Docs
APIsCore ResourcesV1Organization Objects

UpdateUserGrant

Update User Grant

Deprecated: Update an authorization to update a user's roles on an owned or granted project.

Update the roles of a user grant. User grants are the roles users have for a specific project and organization.

PUT
/users/{user_id}/grants/{grant_id}

Path Parameters

user_id*string
grant_id*string

Request Body

application/json

roleKeys?role_keys
[key: string]?never

Response Body

application/json

application/json

curl -X PUT "https://loading/users/string/grants/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "details": {
    "sequence": 0,
    "creationDate": "1s",
    "changeDate": "1s",
    "resourceOwner": "string"
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?