Add User¶
Add a new user.
agate add-user <CREDENTIALS> [OPTIONS] [EXTRA]
Credentials¶
Authentication is done by username/password credentials.
Option | Description |
---|---|
--agate AGATE, -ag AGATE |
Agate server base url. |
--user USER, -u USER |
User name. User with appropriate permissions is expected depending of the REST resource requested. |
--password PASSWORD, -p PASSWORD |
User password. |
Options¶
Option | Description |
---|---|
--name NAME |
The user name, required and unique. |
--email EMAIL |
The user email, required and unique. |
--upassword UPASSWORD |
The user password, required. |
--first-name FIRST_NAME |
The user first name. |
--last-name LAST_NAME |
The user last name. |
--applications [APPLICATIONS [APPLICATIONS ...]] |
The applications in which the user can sign-in, space separated. |
--groups [GROUPS [GROUPS ...]] |
The groups to which the user belongs, space separated. |
--role ROLE |
The role of the user. Default is “agate-user”, which gives only the right to user to access to its own profile. Other possible value is “agate-administrator”. |
--status STATUS |
Only active users can sign-in. Default value is “ACTIVE”. Other possible values are: “PENDING”, “APPROVED” or “INACTIVE”. |
Extras¶
Option | Description |
---|---|
-h, --help |
Show the command help’s message |
--verbose, -v |
Verbose output |
Example¶
Add a new user.
agate add-user -ag http://localhost:8081 -u administrator -p password --name user1 --email user1@example.org --applications mica drupal