Managing users from CLI

You can use the apusermgmt command to add, delete, and modify users.

About this task

For a complete list of command options, see apusermgmt command.

Procedure

  • To add a new user, run the following command:
    apusermgmt add-user [-h] username [-g Admin|User] [-n namespace] [-p password] [-d displayname] [-e email]
    Note: Only the following special characters are allowed in passwords: !@#$%^&*(),.<>[]-=+?
    Examples:
    • apusermgmt add-user testuser -d "Test" -g Admin -e testuser@abc.com
    • apusermgmt add-user testuser -d "Test" -g User -e testuser@abc.com
  • To modify a user, run the following command:
    apusermgmt modify-user [-h] username [-g Admin|User][-n namespace] [-r remove_namespace][-p newpassword][-d displayname]
    Examples of modifying a user role:
    • apusermgmt modify-user testuser -g User
    • apusermgmt modify-user testuser -g Admin
    You can verify the settings for a specific user by running
    apusermgmt info-user [-h] username
  • To delete a user, run the following command:
    apusermgmt delete-user username