ZITADEL Docs
APIsCore ResourcesV1Organization Objects

AddUserGrant

Add User Grant

Deprecated: Add an authorization to grant a user access to an owned or granted project.

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

POST
/users/{user_id}/grants

Path Parameters

user_id*string

Request Body

application/json

projectId*string
projectGrantId?string
roleKeys?role_keys
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://loading/users/string/grants" \  -H "Content-Type: application/json" \  -d '{    "projectId": "string"  }'
{
  "userGrantId": "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?