Skip to main content

CreateUser

Stable

This mutation is used to create a user. If you are not authenticated, it will be like a user asking access. If you are authenticated as a distributor, the created user will be linked to you. If you are authenticated as a distributor network, the created user will be linked to the distributor you give in $distributorId, which must be one of your network

Signature​

mutation {
CreateUser(firstName: ..., lastName: ..., mobile: ..., email: ..., persona: ..., firstAccountInformation: ...)
}

Retourne : CreatedUser!

Arguments​

NomTypeRequisDéfautDescription
firstNameString!✓——
lastNameString!✓——
mobileString!✓——
emailString!✓——
personaPersona!✓——
firstAccountInformationNewUserAccountInformationInput!✓——
activeBooleanfalseActivate the access without review
withEmailBooleanfalseSend an email to the user when activating the access
tosAcknowledgedBooleanfalse—
distributorAdvisorIdID——
localeSupportedLocale——
signupUrlString——

Exemple​

mutation {
CreateUser(
firstName: $firstName
lastName: $lastName
mobile: $mobile
email: $email
persona: $persona
firstAccountInformation: $firstAccountInformation
) {
id
active
email
persona {}
firstName
lastName
locale {}
}
}