Assigning roles using the CLI

Prev Next

Use the CLI commands in this topic to change an existing user’s role. (If you are creating a new user, follow the instructions in Creating a user account using the appliance CLI.)

Important

If you change a role while the user is logged in to the appliance, the user will be forcibly logged out. When the user logs in again, the capabilities associated with the new role are available to the user.

Prerequisites
  • Admin access

To assign a role to a user:
  1. Go to CLI configuration mode:

    hostname > enable
    hostname # configure terminal
  2. Assign a role to a user:

    hostname (config) # username <username> role <role>

    where <role> is one of the roles listed in Roles for local user accounts.

  3. Save your changes:

    hostname (config) # write memory