SanitizedUser
Sanitized user (without password and private tokens)
type SanitizedUser {
id: String!
firstName: String!
lastName: String!
mobile: String!
email: String!
isEmailValidated: Boolean!
role: UserRole!
status: UserStatus!
site: Site
language: Language!
integrator: Integrator
distributor: Distributor
isTwoFactorEnabled: Boolean!
isAccountManagerContact: Boolean
isSalesContact: Boolean
isTechnicalContact: Boolean
isBillingContact: Boolean
permissions: [Permission!]!
origin: UserOrigin!
deviceConfigTemplates: [DeviceConfigTemplate!]!
createdAt: DateTime!
updatedAt: DateTime!
}
Fields
SanitizedUser.id ● String! non-null scalar
The ID of the user
SanitizedUser.firstName ● String! non-null scalar
The first name of the user
SanitizedUser.lastName ● String! non-null scalar
The last name of the user
SanitizedUser.mobile ● String! non-null scalar
The phone number of the user
SanitizedUser.email ● String! non-null scalar
Email of the user
SanitizedUser.isEmailValidated ● Boolean! non-null scalar
Whether the email of the user has been validated
SanitizedUser.role ● UserRole! non-null enum
The role of the user
SanitizedUser.status ● UserStatus! non-null enum
The status of the user : PENDING, ACTIVE, BLOCKED, DELETED
SanitizedUser.site ● Site object
The site of the user
SanitizedUser.language ● Language! non-null enum
SanitizedUser.integrator ● Integrator object
The integrator of the user
SanitizedUser.distributor ● Distributor object
The distributor of the user
SanitizedUser.isTwoFactorEnabled ● Boolean! non-null scalar
Whether the user has enabled 2FA
SanitizedUser.isAccountManagerContact ● Boolean scalar
Whether the user is account manager contact
SanitizedUser.isSalesContact ● Boolean scalar
Whether the user is sales contact
SanitizedUser.isTechnicalContact ● Boolean scalar
Whether the user is technical contact
SanitizedUser.isBillingContact ● Boolean scalar
Whether the user is billing contact
SanitizedUser.permissions ● [Permission!]! non-null enum
The permissions of the user
SanitizedUser.origin ● UserOrigin! non-null enum
The origin of the user : APPLICATION, SYSTEM
SanitizedUser.deviceConfigTemplates ● [DeviceConfigTemplate!]! non-null object
The device config templates of the user
SanitizedUser.createdAt ● DateTime! non-null scalar
The date of creation of the user
SanitizedUser.updatedAt ● DateTime! non-null scalar
The date of the last update of the user
Returned By
findUserById query ● getAllUsers query
Member Of
Generate2faOutput object ● LoginOutput object ● RegisterOutput object