Skip to main content

User

Object

Contains the details about a user.

type User {
created: DateTime
email: String
emailVerified: Boolean
id: String
lastLogin: DateTime
loginsCount: Long
name: String
nickname: String @deprecated
orgRoles: [String]
organization: Org
roles: [Role]
tokens(filter: PersonalAccessTokenFilterInput): [PersonalAccessToken]
updated: DateTime
}

Fields​

FieldTypeDescription
createdDateTimeThe timestamp of the user creation.
emailStringThe user's email.
emailVerifiedBooleanTrue or False, whether the user has verified their email yet.
idStringThe unique ID of the user.
lastLoginDateTime
loginsCountLong
nameStringThe name of a user - this will be the full name, first and last.
nicknameStringDeprecated No longer supported
The user's nickname (often just the first name of the user).
orgRoles[String]
organizationOrgThe details for the user's organization.
roles[Role]Lists the user's roles, such as ADMIN or EXPLORER.
tokens[PersonalAccessToken]Lists the tokens for the user - will not return the actual PAT, but will show name, permissions/scopes, when the token was last used.
Arguments: filter: PersonalAccessTokenFilterInput
updatedDateTimeTimestamp when one or more user details were last updated.

Used by​