user-role-add

This command is used to create a user role on the switch.

Syntax   user-role-add user-name name-string scope role role-name 

user-name name-string

Specify a name for the user.

Specify the following role arguments:

role role-name

Specify a role for the user.

Defaults   None.

Access   CLI

History   Command introduced in nvOS Version 1.2.1.

Usage   Use this command to create user roles on the switch.

Examples  To create the user, net-access, with the role, net-admin, use the following command:

CLI network-admin@switch > user-role-add user-name net-access role net-admin

See Also   

user-create

user-delete

user-modify

user-show

user-role-remove

user-role-show

user-password-set