Add User

Add a new user.

agate add-user <CREDENTIALS> [OPTIONS] [EXTRA]


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.


Option Description
--name NAME The user name, required and unique.
--email EMAIL The user email, required and unique.
--upassword UPASSWORD The user password, required if realm is not specified or if it is Agate’s one.
--realm REALM The realm in which the user will authenticate, optional (default is Agate’s realm).
--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”.


Option Description
-h, --help Show the command help’s message
--verbose, -v Verbose output


Add a new user.

agate add-user -ag http://localhost:8081 -u administrator -p password --name user1 --email --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 --realm keycloak --groups mica-user --groups opal-user