roles command
Use this command to display or configure roles.
Syntax:
roles role_account[3-31] [-options]
Option | Description | Values |
---|---|---|
-n | Role name | Limited to 32 characters |
-p | Set privileges | custom:am|rca|rcvma|pr|cel|bc|nsc|ac|us
Note The above custom permission flags can be used in any combination |
-d | Delete a row |
Note
When creating a new role, if the user specified role index already exists, the new role index might not be the same as the user specified index.
Example:
system> roles -3 -n test -p custom:nsc|pr|bc|cel|ac
ok
system> roles
Account Role Privilege Assigned To
------- ---------------------------------- ------------------------- ------------
0 Administrator all USERID
1 ReadOnly none
2 Operator custom:nsc|pr|bc|cel|ac
3 test custom:nsc|pr|bc|cel|ac
system> roles -d test
ok
system> roles
Account Role Privilege Assigned To
------- --------------------------- ------------------------- ------------
0 Administrator all USERID
1 ReadOnly none
2 Operator custom:nsc|pr|bc|cel|ac
Give documentation feedback