Objects
External User​
externalIdstring
User id from the identity providerexternalIdpIdstring
Id of the identity providerhumanfirstNamestringlastNamestringnickNamestringdisplayNamestringpreferredLanguagestring
In RFC 5646 fromatemailstringisEmailVerifiedbooleanphonestringisPhoneVerifiedboolean
metadata with value as bytes​
keystringvalueArray of byte
metadata result​
countnumbersequencenumbertimestampDatemetadataArray of metadata
metadata​
creationDateDatechangeDateDateresourceOwnerstringsequencenumberkeystringvalueAny
user grant​
projectIDstring
Required. Id of the project to be grantedprojectGrantIDstring
Optional. If the grant is for a project grant, include projectGrantIDrolesArray of string
Containing the roles
user​
idstringcreationDateDatechangeDateDateresourceOwnerstringsequencenumber
Unsigned 64 bit integerstatenumber- 0: unspecified
- 1: active
- 2: inactive
- 3: deleted
- 4: locked
- 5: suspended
- 6: initial
usernamestringloginNamesArray of stringpreferredLoginNamestringhuman
Set if the user is humanfirstNamestringlastNamestringnickNamestringdisplayNamestringavatarKeystringpreferredLanguagestring
In RFC 5646 fromatgendernumber- 0: unspecified
- 1: female
- 2: male
- 3: diverse
emailstringisEmailVerifiedbooleanphonestringisPhoneVerifiedboolean
machine
Set if the user is a machinenamestringdescriptionstring
human user​
idstringcreationDateDatechangeDateDateresourceOwnerstringsequencenumberstatenumber- 0: unspecified
- 1: active
- 2: inactive
- 3: deleted
- 4: locked
- 5: suspended
- 6: initial
usernamestringloginNamesArray of stringpreferredLoginNamestringprofilefirstNamestringlastNamestringnickNamestringdisplayNamestringpreferredLanguagestring
In RFC 5646 fromat
emailemailstringisEmailVerifiedboolean
phonephonestringisPhoneVerifiedboolean
Auth Request​
This object contains context information about the request to the authorization endpoint.
idstringagentIdstringcreationDateDatechangeDateDatebrowserInfobrowserInfouserAgentstringacceptLanguagestringremoteIpstring
applicationIdstringcallbackUristringtransferStatestringpromptArray of Number- 0: not specified
- 1: none
- 2: login
- 3: consent
- 4: select_account
- 5: create
uiLocalesArray of stringloginHintstringmaxAuthAgeNumber
Duration in nanosecondsinstanceIdstringrequestoidcscopesArray of string
userIdstringuserNamestringloginNamestringdisplayNamestringresourceOwnerstringrequestedOrgIdstringrequestedOrgNamestringrequestedPrimaryDomainstringrequestedOrgDomainboolapplicationResourceOwnerstringprivateLabelingSettingNumber- 0: Unspecified
- 1: Enforce project resource owner policy
- 2: Allow login user resource owner policy
selectedIdpConfigIdstringlinkingUsersArray of ExternalUserpasswordVerifiedboolmfasVerifiedArray of Number- 0: OTP
- 1: U2F
- 2: U2F User verification
audienceArray of stringauthTimeDate
HTTP Request​
This object is based on the Golang struct http.Request, some attributes are removed as not all provided information is usable in this context.
methodstringurlstringprotostringcontentLengthnumberhoststringformMap string of Array of stringpostFormMap string of Array of stringremoteAddrstringheadersMap string of Array of string
Claims​
This object represents the claims which will be written into the oidc token.
substringnamestringemailstringlocalestringgiven_namestringfamily_namestringpreferred_usernamestringemail_verifiedboolupdated_atNumber
Additionally there could additional fields depending on the configuration of your project and your application
user grant list​
This object represents a list of user grant stored in ZITADEL.
countNumbersequenceNumbertimestampDategrantsArray ofidstringprojectGrantIdstring
The id of the project grantstateNumber- 0: unspecified
- 1: active
- 2: inactive
- 3: removed
creationDateDatechangeDateDatesequenceNumberuserIdstringrolesArray of stringuserResourceOwnerstringuserGrantResourceOwnerstringuserGrantResourceOwnerNamestringprojectIdstringprojectNamestring