CreateUser
Create a user (authenticated). If samlId is provided, caller must be super admin.
Signature
mutation {
CreateUser(firstName: ..., lastName: ..., mobile: ..., email: ..., persona: ..., firstAccountInformation: ...)
}
Retourne : User!
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 | |
distributorAdvisorId | ID | — | — | |
locale | SupportedLocale | — | — | |
samlId | String | — | SAML identifier. Only super admins can set this. |
Exemple
mutation {
CreateUser(
firstName: $firstName
lastName: $lastName
mobile: $mobile
email: $email
persona: $persona
firstAccountInformation: $firstAccountInformation
) {
# Sélectionner les champs souhaités
}
}