Adding a user via the CLIOverviewCLI command | add-user | Description | Add a new user. | Command format | Code Block |
---|
add-user -u <USERNAME> -p <PASSWORD> -r <ROLE_NAME> -f <FIRST_NAME> -l <LAST_NAME> -e <EMAIL> -pr <PROFILE_NAME> |
|
Parameter definitionShort option | Long option | Description | Required | Example value |
---|
-u | --username
| Username given to the user. | Yes | kim | -p | --password
| User's password. | Yes | admin123 | -r | --role-name | Role assigned to the user. When adding a user in Stratos, only the following values are allowed for the property "role": | Yes | admin | -f | --first-name
| User's first name. | Yes | Kim | -l | --last-name
| User's last name. | Yes | Myers | -e | --email
| User's email address. | Yes | foo@bar.com | -pr | --profile-name | User's profile name. | Yes | dev |
ExampleAdd a user with the username: kim, name: Kim Myers, password: admin123, email: foo@bar.com, role: admin and profile: dev. Code Block |
---|
add-user -u kim -p admin123 -r admin -f Kim -l Myers -e foo@bar.com -pr dev |
Sample output Code Block |
---|
User added successfully: [user] kim |
|