Skip to main content

createCustomerUser Mutation

Creates a User for the specified Customer.

Access is permitted when any of the following condition(s) are met: 1. The signed-in User has any of the following permissions for the associated Organization: [org_admin_users] when 'customer' is not provided in the access function context. 2. The signed-in User has any of the following permissions for the access function context object 'customer': [customer_admin_users] when 'customer' is provided in the access function context. 3. The signed-in User has any of the following permissions for the associated Organization: [org_admin_customer_permissions, org_manage_customers] when 'customer' is provided in the access function context.

Input fields (CreateCustomerUserInput!)

ArgumentTypeDescription
emailString!The email address associated with the User.
nameStringThe user's preferred name.
customerIDThe Customer the user belongs to, if any. If this is NULL then Organization will be specified.
roleID!
phoneStringThe preferred contact phone number for the User.
externalIdStringAllows for mapping an external entity to a Prismatic record.
clientMutationIdStringA unique identifier for the client performing the mutation.

Return fields (CreateCustomerUserPayload)

clientMutationId (String)
errors ([ErrorType!]!)
user (User)