users
CLI REST-API

## add-user

    add-user [group] [name] [password] [loginshell]
    The "add-user" command creates a new user on the local system. You have to specify
    the group/access level of the new account ("info", "admin" or "super"), the login name
    and the password for the new account.

    "loginshell" is optional.

    Please note that in order to make this account persistent, you have to use the
    "write" command to save the changes to the flash of your system.

    RESTAPI: The data can be passed in the body like this:
    {
        "parameters": {
            "group": "super",
            "name": "bob",
            "password": "secret",
            "loginshell": "/bin/bash"
        }
    }

Name | Value | Description | Example
--- | --- | --- | ---
| group |  | super
| name |  | bob
| password |  | secret
| loginshell |  | /bin/bash

See also:
/users: users
/users/delete-user: removes a user account
/users/show-user: shows the information stored for a given user account

#### REST-API Support:

This command is supported by the REST API:
Method: POST
URL: /api/users/add-user
Body:

    {
        "parameters": {
            "group": [group],
            "name": [name],
            "password": [password],
            "loginshell": [loginshell]
        }
    }

Example using curl:

    curl -X POST /api/users/add-user -d
    "{
        \"parameters\": {
            \"group\": \"super\",
            \"name\": \"bob\",
            \"password\": \"secret\",
            \"loginshell\": \"/bin/bash\"
        }
    }"