Skip to content
Last update: April 11, 2024

createUser mutation

This mutation creates a user.

Arguments

The InputCreateUserType! represents the input object for creating a user.

Field Description
applicationUser InputCreateApplicationUserType The input data for creating an application user, which includes the user's details.

Possible returns

Possible return Description
IdentityResultType The result of an identity-related operation.
1
2
3
4
5
mutation($command: InputCreateUserType!) {
  createUser(command: $command) {
    succeeded
  }
}

```json linenums="1"

{ "command": {"applicationUser": { "email": "graphql@test.local", "userName": "graphqlTestUserName", "userType": "Customer", "createdBy": "admin" } } } ```