Skip to main content
Version: 3.x

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

DEPRECATED

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

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

StaffCreate.user ● User object

Returned by

staffCreate mutation


Was this page helpful?