Skip to content
Saleor
Esc
↑↓navigate↵open⌘Jpreview

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

UserCreateInput Input Type

input UserCreateInput {
  defaultBillingAddress: AddressInput
  defaultShippingAddress: AddressInput
  firstName: String
  lastName: String
  email: String
  isActive: Boolean
  note: String
  metadata: [MetadataInput!]
  privateMetadata: [MetadataInput!]
  languageCode: LanguageCodeEnum
  externalReference: String
  isConfirmed: Boolean @deprecated(reason: "The user will be always set as unconfirmed. The confirmation will take place when the user sets the password.")
  customerType: ID
  attributes: [AttributeValueInput!]
  redirectUrl: String
  channel: String
}

Fields

defaultBillingAddress

defaultBillingAddress · AddressInput

Billing address of the customer.

defaultShippingAddress

defaultShippingAddress · AddressInput

Shipping address of the customer.

firstName

firstName · String

Given name.

lastName

lastName · String

Family name.

email

email · String

The unique email address of the user.

isActive

isActive · Boolean

User account is active.

note

note · String

A note about the user.

metadata

metadata · [MetadataInput!]

Fields required to update the user metadata. Can be read by any API client authorized to read the object it’s attached to.

Warning: never store sensitive information, including financial data such as credit card details.

privateMetadata

privateMetadata · [MetadataInput!]

Fields required to update the user private metadata. Requires permissions to modify and to read the metadata of the object it’s attached to.

Warning: never store sensitive information, including financial data such as credit card details.

languageCode

languageCode · LanguageCodeEnum

User language code.

externalReference

externalReference · String

External ID of the customer.

isConfirmed

isConfirmed · Boolean

User account is confirmed.

customerType

customerType · ID

ID of the customer type to assign to the user. If not provided when creating a customer, the default customer type is assigned.

Added in Saleor 3.23

attributes

attributes · [AttributeValueInput!]

List of attribute values to assign to the user. The attributes must belong to the customer type the user ends up with.

Added in Saleor 3.23

redirectUrl

redirectUrl · String

URL of a view where users should be redirected to set the password. URL in RFC 1808 format.

channel

channel · String

Slug of a channel which will be used for notify user. Optional when only one channel exists.

Used by


Schema: Saleor 3.23.43. Download SDL.

Last updated on August 10, 2026

Was this page helpful?