User Grant By ID​
Returns a user grant per ID. A user grant is a role a user has for a specific project and organization.
Path Parameters
Header Parameters
The default is always the organization of the requesting user. If you like to get/set a result of another organization include the header. Make sure the user has permission to access the requested data.
- 200
- default
A successful response.
Schema
userGrant object
details object
on read: the sequence of the last event reduced by the projection
on manipulation: the timestamp of the event(s) added by the manipulation
on read: the timestamp of the first event of the object
on create: the timestamp of the event(s) added by the manipulation
on read: the timestamp of the last event reduced by the projection
on manipulation: the
Possible values: [USER_GRANT_STATE_UNSPECIFIED
, USER_GRANT_STATE_ACTIVE
, USER_GRANT_STATE_INACTIVE
]
Default value: USER_GRANT_STATE_UNSPECIFIED
current state of the user
email address of the user. (spec: https://tools.ietf.org/html/rfc2822#section-3.4.1)
display name of the user
avatar URL of the user
Possible values: [TYPE_UNSPECIFIED
, TYPE_HUMAN
, TYPE_MACHINE
]
Default value: TYPE_UNSPECIFIED
type of the user (human / machine)
{
"userGrant": {
"id": "69629023906488334",
"details": {
"sequence": "2",
"creationDate": "2024-03-27T06:43:21.500Z",
"changeDate": "2024-03-27T06:43:21.500Z",
"resourceOwner": "69629023906488334"
},
"roleKeys": [
"role.super.man"
],
"state": "USER_GRANT_STATE_UNSPECIFIED",
"userId": "69629023906488334",
"userName": "gigi-giraffe",
"firstName": "Gigi",
"lastName": "Giraffe",
"email": "gigi@zitadel.com",
"displayName": "Gigi Giraffe",
"orgId": "69629023906488334",
"orgName": "ZITADEL",
"orgDomain": "zitadel.cloud",
"projectId": "69629023906488334",
"projectName": "ZITADEL",
"projectGrantId": "69629023906488334",
"avatarUrl": "{your-domain}/assets/v1/avatar-32432jkh4kj32",
"preferredLoginName": "gigi@zitadel.com",
"userType": "TYPE_UNSPECIFIED",
"grantedOrgId": "69629023906488334",
"grantedOrgName": "ZITADEL",
"grantedOrgDomain": "zitadel.cloud"
}
}
Schema
userGrant object
details object
on read: the sequence of the last event reduced by the projection
on manipulation: the timestamp of the event(s) added by the manipulation
on read: the timestamp of the first event of the object
on create: the timestamp of the event(s) added by the manipulation
on read: the timestamp of the last event reduced by the projection
on manipulation: the
Possible values: [USER_GRANT_STATE_UNSPECIFIED
, USER_GRANT_STATE_ACTIVE
, USER_GRANT_STATE_INACTIVE
]
Default value: USER_GRANT_STATE_UNSPECIFIED
current state of the user
email address of the user. (spec: https://tools.ietf.org/html/rfc2822#section-3.4.1)
display name of the user
avatar URL of the user
Possible values: [TYPE_UNSPECIFIED
, TYPE_HUMAN
, TYPE_MACHINE
]
Default value: TYPE_UNSPECIFIED
type of the user (human / machine)
{
"userGrant": {
"id": "69629023906488334",
"details": {
"sequence": "2",
"creationDate": "2024-03-27T06:43:21.501Z",
"changeDate": "2024-03-27T06:43:21.501Z",
"resourceOwner": "69629023906488334"
},
"roleKeys": [
"role.super.man"
],
"state": "USER_GRANT_STATE_UNSPECIFIED",
"userId": "69629023906488334",
"userName": "gigi-giraffe",
"firstName": "Gigi",
"lastName": "Giraffe",
"email": "gigi@zitadel.com",
"displayName": "Gigi Giraffe",
"orgId": "69629023906488334",
"orgName": "ZITADEL",
"orgDomain": "zitadel.cloud",
"projectId": "69629023906488334",
"projectName": "ZITADEL",
"projectGrantId": "69629023906488334",
"avatarUrl": "{your-domain}/assets/v1/avatar-32432jkh4kj32",
"preferredLoginName": "gigi@zitadel.com",
"userType": "TYPE_UNSPECIFIED",
"grantedOrgId": "69629023906488334",
"grantedOrgName": "ZITADEL",
"grantedOrgDomain": "zitadel.cloud"
}
}
Schema
userGrant object
details object
on read: the sequence of the last event reduced by the projection
on manipulation: the timestamp of the event(s) added by the manipulation
on read: the timestamp of the first event of the object
on create: the timestamp of the event(s) added by the manipulation
on read: the timestamp of the last event reduced by the projection
on manipulation: the
Possible values: [USER_GRANT_STATE_UNSPECIFIED
, USER_GRANT_STATE_ACTIVE
, USER_GRANT_STATE_INACTIVE
]
Default value: USER_GRANT_STATE_UNSPECIFIED
current state of the user
email address of the user. (spec: https://tools.ietf.org/html/rfc2822#section-3.4.1)
display name of the user
avatar URL of the user
Possible values: [TYPE_UNSPECIFIED
, TYPE_HUMAN
, TYPE_MACHINE
]
Default value: TYPE_UNSPECIFIED
type of the user (human / machine)
{
"userGrant": {
"id": "69629023906488334",
"details": {
"sequence": "2",
"creationDate": "2024-03-27T06:43:21.501Z",
"changeDate": "2024-03-27T06:43:21.501Z",
"resourceOwner": "69629023906488334"
},
"roleKeys": [
"role.super.man"
],
"state": "USER_GRANT_STATE_UNSPECIFIED",
"userId": "69629023906488334",
"userName": "gigi-giraffe",
"firstName": "Gigi",
"lastName": "Giraffe",
"email": "gigi@zitadel.com",
"displayName": "Gigi Giraffe",
"orgId": "69629023906488334",
"orgName": "ZITADEL",
"orgDomain": "zitadel.cloud",
"projectId": "69629023906488334",
"projectName": "ZITADEL",
"projectGrantId": "69629023906488334",
"avatarUrl": "{your-domain}/assets/v1/avatar-32432jkh4kj32",
"preferredLoginName": "gigi@zitadel.com",
"userType": "TYPE_UNSPECIFIED",
"grantedOrgId": "69629023906488334",
"grantedOrgName": "ZITADEL",
"grantedOrgDomain": "zitadel.cloud"
}
}
An unexpected error response.
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}