Skip to main content

StaffCreate

Creates a new staff user. Apps are not allowed to perform this mutation.

Requires MANAGE_STAFFpermission.

Triggers the following webhook events:

  • STAFF_CREATED (async): A new staff account was created.
  • NOTIFY_USER (async): A notification for setting the password.
  • STAFF_SET_PASSWORD_REQUESTED (async): Setting a new password for the staff account is requested.
type StaffCreate {
staffErrors: [StaffError!]! @deprecated
errors: [StaffError!]!
user: User
}

Fields

StaffCreate.staffErrors ● [StaffError!]! deprecated non-null object users

DEPRECATED

This field will be removed in Saleor 4.0. Use errors field instead.

StaffCreate.errors ● [StaffError!]! non-null object users

StaffCreate.user ● User object users

Returned By

staffCreate mutation