apps/docs/content/apis/actions/objects.mdx
externalId string
User id from the identity providerexternalIdpId string
ID of the identity providerhuman
firstName stringlastName stringnickName stringdisplayName stringpreferredLanguage string
In RFC 5646 formatemail stringisEmailVerified booleanphone stringisPhoneVerified booleankey stringvalue Array of bytecount numbersequence numbertimestamp Datemetadata Array of metadatacreationDate DatechangeDate DateresourceOwner stringsequence numberkey stringvalue AnyA user grant is a role assignment for a user.
projectID string
Required. ID of the project for the role assignment.projectGrantID string
Optional. If the role assignment is for a project grant, include projectGrantIDroles Array of string
Roles to assign to the user.id stringcreationDate DatechangeDate DateresourceOwner stringsequence number
Unsigned 64-bit integerstate number
<ul><li>0: unspecified</li><li>1: active</li><li>2: inactive</li><li>3: deleted</li><li>4: locked</li><li>5: suspended</li><li>6: initial</li></ul>
username stringloginNames Array of stringpreferredLoginName stringhumanfirstName stringlastName stringnickName stringdisplayName stringavatarKey stringpreferredLanguage string
In RFC 5646 formatgender number
<ul><li>0: unspecified</li><li>1: female</li><li>2: male</li><li>3: diverse</li></ul>
email stringisEmailVerified booleanphone stringisPhoneVerified booleanmachine
Set if the user is a machine
name stringdescription stringid stringcreationDate DatechangeDate DateresourceOwner stringsequence numberstate number
<ul><li>0: unspecified</li><li>1: active</li><li>2: inactive</li><li>3: deleted</li><li>4: locked</li><li>5: suspended</li><li>6: initial</li></ul>
username stringloginNames Array of stringpreferredLoginName stringprofile
firstName stringlastName stringnickName stringdisplayName stringpreferredLanguage string
In RFC 5646 formatemail
email stringisEmailVerified booleanphone
phone stringisPhoneVerified booleanThis object contains context information about the request to the authorization endpoint.
id stringagentId stringcreationDate DatechangeDate DatebrowserInfo browserInfo
userAgent stringacceptLanguage stringremoteIp stringapplicationId stringcallbackUri stringtransferState stringprompt Array of Number
<ul><li>0: not specified</li><li>1: none</li><li>2: login</li><li>3: consent</li><li>4: select_account</li><li>5: create</li></ul>
uiLocales Array of stringloginHint stringmaxAuthAge Number
Duration in nanosecondsinstanceId stringrequest
oidc
scopes Array of stringuserId stringuserName stringloginName stringdisplayName stringresourceOwner stringrequestedOrgId stringrequestedOrgName stringrequestedPrimaryDomain stringrequestedOrgDomain boolapplicationResourceOwner stringprivateLabelingSetting Number
<ul><li>0: Unspecified</li><li>1: Enforce project's policy</li><li>2: Allow user's organization login policy</li></ul>
selectedIdpConfigId stringlinkingUsers Array of ExternalUserpasswordVerified boolmfasVerified Array of Number
<ul><li>0: OTP</li><li>1: U2F</li><li>2: U2F User verification</li></ul>
audience Array of stringauthTime DateThis object is based on the Golang struct http.Request, some attributes are removed as not all provided information is usable in this context.
method stringurl stringproto stringcontentLength numberhost stringform Map string of Array of stringpostForm Map string of Array of stringremoteAddr stringheaders Map string of Array of stringThis object represents the claims which will be written into the oidc token.
sub stringname stringemail stringlocale stringgiven_name stringfamily_name stringpreferred_username stringemail_verified boolupdated_at NumberThere could be additional fields depending on the settings of your project and your application
This object represents a list of user grants (role assignments) stored in ZITADEL.
count Numbersequence Numbertimestamp Dategrants Array of
id stringprojectGrantId string
The id of the project grantstate Number
<ul><li>0: unspecified</li><li>1: active</li><li>2: inactive</li><li>3: removed</li></ul>
creationDate DatechangeDate Datesequence NumberuserId stringroles Array of stringuserResourceOwner string
The id of the organization of the useruserGrantResourceOwner string
The id of the organization, where the user was granteduserGrantResourceOwnerName string
The name of the organization, where the user was grantedprojectId stringprojectName stringgetOrgMetadata() metadataResult
Get the metadata of the organization where the user was granted