Add User
Add a new user.
agate add-user <CREDENTIALS> [OPTIONS] [EXTRA]
Credentials
Authentication is done by username/password credentials.
Option |
Description |
---|---|
|
Agate server base url. |
|
User name. User with appropriate permissions is expected depending of the REST resource requested. |
|
User password. |
Options
Option |
Description |
---|---|
|
The user name, required and unique. |
|
The user email, required and unique. |
|
The user password, required if realm is not specified or if it is Agate’s one. |
|
The realm in which the user will authenticate, optional (default is Agate’s realm). |
|
The user first name. |
|
The user last name. |
|
The applications in which the user can sign-in, space separated. |
|
The groups to which the user belongs, space separated. |
|
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”. |
|
Only active users can sign-in. Default value is “ACTIVE”. Other possible values are: “PENDING”, “APPROVED” or “INACTIVE”. |
Extras
Option |
Description |
---|---|
|
Show the command help’s message |
|
Verbose output |
Example
Add a new user.
agate add-user -ag http://localhost:8081 -u administrator -p password --name user1 --email user1@example.org --upassword CHANGEME --applications mica
Add a new user from a Keycloak’s server that is registered as as an OpenID Connect realm.
agate add-user -ag http://localhost:8081 -u administrator -p password --name user1 --email user1@example.org --realm keycloak --groups mica-user --groups opal-user