Skip to Content
ZITADEL Docs
APIsCore ResourcesV1Organization Objects

Get User Grant By ID

Deprecated: List authorizations and filter by its ID.

Returns a user grant per ID. A user grant is a role a user has for a specific project and organization.

Note: User grant refers to role assignments.

GET
/management/v1/users/{user_id}/grants/{grant_id}

Path Parameters

user_id*user_id
grant_id*grant_id

Response Body

Success

application/json
  1. response
userGrant?

User grant refers to role assignments, i.e., the roles users have for a specific project and organization.

Example Request
curl -X GET 'https://example.com/management/v1/users/string/grants/string'
Example Response200
{  "userGrant": {    "id": "string",    "details": {      "sequence": 0,      "creationDate": "2023-01-15T01:30:15.01Z",      "changeDate": "2023-01-15T01:30:15.01Z",      "resourceOwner": "string"    },    "roleKeys": [      "string"    ],    "state": "USER_GRANT_STATE_UNSPECIFIED",    "userId": "string",    "userName": "string",    "firstName": "string",    "lastName": "string",    "email": "string",    "displayName": "string",    "orgId": "string",    "orgName": "string",    "orgDomain": "string",    "projectId": "string",    "projectName": "string",    "projectGrantId": "string",    "avatarUrl": "string",    "preferredLoginName": "string",    "userType": "TYPE_UNSPECIFIED",    "grantedOrgId": "string",    "grantedOrgName": "string",    "grantedOrgDomain": "string"  }}

Was this page helpful?