Skip to Content
ZITADEL Docs
APIsCore ResourcesV1Organization Objects

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.

Note: User grant refers to role assignments.

POST
/management/v1/users/{user_id}/grants

Path Parameters

user_id*user_id

Request Body

application/json
  1. body
projectId*project_id
projectGrantId?project_grant_id
roleKeys?array<string>

Response Body

Success

application/json
  1. response
userGrantId?user_grant_id
details?
Example Request
curl -X POST 'https://example.com/management/v1/users/string/grants' \  -H 'Content-Type: application/json' \  -d '{  "projectId": "string"}'
Example Response200
{  "userGrantId": "string",  "details": {    "sequence": 0,    "creationDate": "2023-01-15T01:30:15.01Z",    "changeDate": "2023-01-15T01:30:15.01Z",    "resourceOwner": "string"  }}

Was this page helpful?