Create User (GQL)

Note: All the User Management API's have the endpoint: /graphql

Creates a self-service user for the same client (entity) as the logged-in user. The email is used as the username, a temporary password is emailed to the new user, and they must reset it after the first login. Returns the id of the new user.

Rules:

  • The enable-managing-ssu-by-ssu global configuration must be enabled.
  • The logged-in user must be linked to exactly one client, and that client must be an entity (not an individual).
  • At least one role is required, and every role must be a self-service role. Use Get User Template or Get Self-Service Roles to look up role ids.
Body Params

Following are the details on the GraphQL fields :

ParameterDescriptionMandatoryData TypeExample
emailEmail address, also used as the usernameYesString[email protected]
firstnameFirst nameYesStringJane
lastnameLast nameYesStringDoe
mobileMobile numberNoString+15550101
termsAcceptedWhether the user has accepted the terms and conditionsNoBooleantrue
rolesIds of the self-service roles to assignYes[Long][5]
Headers
string
required
Defaults to z01j3e71zd6zkq908vyf5861a8

The ID of your banking instance visible in the MBANQ Console.

Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json