User
Represents user account data.
type User implements Node, ObjectWithMetadata {
id: ID!
metadata: [MetadataItem!]!
privateMetadata: [MetadataItem!]!
email: String!
firstName: String!
lastName: String!
companyName: String!
isActive: Boolean!
dateJoined: DateTime!
lastLogin: DateTime
lastStatusChangedAt: DateTime
personalPhone: String
externalId: String
externalSource: String
taxExemptCode: String
vatIdentificationNumber: String
externalPayoutAccountId: String
externalPayoutOnboardingUrl: String
defaultShippingAddress: Address
defaultBillingAddress: Address
externalInventoryId: String
isStaff: Boolean!
note: String
externalPayoutSource: UserExternalPayoutSource
addresses: [Address!]!
isAssignable: Boolean!
tenantId: String
avatar(
size: Int
): Image
checkout: Checkout
numOrders: Int
orderCount: Int
orderTotalAmount: Money
isMarketplaceOperator: Boolean!
orders(
filter: CustomerOrderFilterInput
sortBy: OrderSortingInput
before: String
after: String
first: Int
last: Int
): OrderCountableConnection!
nauticalOrders(
filter: CustomerNauticalOrderFilterInput
sortBy: OrderSortingInput
before: String
after: String
first: Int
last: Int
): NauticalOrderCountableConnection!
userPermissions: [UserPermission!]!
permissionGroups: [Group!]!
editableGroups: [Group!]!
events: [CustomerEvent!]!
timeline(
kinds: [TimelineEntryKind!]
): [TimelineEntry!]!
storedPaymentSources: [PaymentSource!]!
seller: Seller
wishlist(
before: String
after: String
first: Int
last: Int
): WishlistItemCountableConnection!
wishlists(
before: String
after: String
first: Int
last: Int
): WishlistCountableConnection!
documents: [Document!]!
dashboardEmbeddingToken: String
customFields: [SelectedAttribute!]!
}
Show more ↓
Fields
User.id ● ID! non-null scalar
The Globally Unique ID of this object
User.metadata ● [MetadataItem!]! non-null object
List of public metadata items. Can be accessed without permissions.
User.privateMetadata ● [MetadataItem!]! non-null object
List of private metadata items. Requires proper staff permissions to access.