ZITADEL Docs
APIsCore ResourcesV1Organization Objects

GetUserGrantByID

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.

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

Path Parameters

user_id*string
grant_id*string

Response Body

application/json

application/json

curl -X GET "https://loading/users/string/grants/string"
{
  "userGrant": {
    "id": "string",
    "details": {
      "sequence": 0,
      "creationDate": "1s",
      "changeDate": "1s",
      "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"
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?