Skip to main content

CreateUser

Stable

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​

NomTypeRequisDéfautDescription
firstNameString!✓——
lastNameString!✓——
mobileString!✓——
emailString!✓——
personaPersona!✓——
firstAccountInformationNewUserAccountInformationInput!✓——
activeBooleanfalseActivate the access without review
withEmailBooleanfalseSend an email to the user when activating the access
distributorAdvisorIdID——
localeSupportedLocale——
samlIdString—SAML identifier. Only super admins can set this.

Exemple​

mutation {
CreateUser(
firstName: $firstName
lastName: $lastName
mobile: $mobile
email: $email
persona: $persona
firstAccountInformation: $firstAccountInformation
) {
id
active
email
lastLogin
mobile
firstName
lastName
persona {}
personaDetailed {}
userGroup {}
accounts {}
roles
emailsInCopy
isPasswordDefined
portfolio {}
unactiveComment
acceptedAt
createdAt
userSegments {}
segments {}
distributedByAdvisor {}
distributedBy {}
representedDistributorNetwork {}
tosAcknowledgedAt
locale {}
localeDetailed {}
lastLoginMethod {}
signupUrlParameters {}
userAccountPermissions {}
userAccountNotifications {}
}
}