CreateUser
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
| Nom | Type | Requis | Défaut | Description |
|---|---|---|---|---|
firstName | String! | ✓ | — | — |
lastName | String! | ✓ | — | — |
mobile | String! | ✓ | — | — |
email | String! | ✓ | — | — |
persona | Persona! | ✓ | — | — |
firstAccountInformation | NewUserAccountInformationInput! | ✓ | — | — |
active | Boolean | false | Activate the access without review | |
withEmail | Boolean | false | Send an email to the user when activating the access | |
tosAcknowledged | Boolean | false | — | |
distributorAdvisorId | ID | — | — | |
locale | SupportedLocale | — | — | |
signupUrl | String | — | — |
Exemple
mutation {
CreateUser(
firstName: $firstName
lastName: $lastName
mobile: $mobile
email: $email
persona: $persona
firstAccountInformation: $firstAccountInformation
) {
# Sélectionner les champs souhaités
}
}