Skip to main content

CreateUser

Create a new user.

Parameters

  • username: user's username.
  • password: user's password.
  • roles: array of roles assigned to the user.
  • [optional] email: user's email.

Details

If a user with the same username already exist, an error is returned. See CreateRole for role descriptions.

Examples

Add a User using CreateUser command:


[{
"CreateUser": {
"username": "john",
"password": "love4Aperture!",
"roles": ["admin", "user", "architect"],
"email": "jfk@aperturedata.io"
}
}]

Result from successfully adding a user:


[{
"CreateUser": {
"status": 0
}
}]