# Configuring Username

You can configure the username based on the role(RBAC) using the below command:

#### Reference

<table data-header-hidden><thead><tr><th></th><th></th><th data-hidden></th></tr></thead><tbody><tr><td>Command</td><td>[no] username &#x3C;user_name> password &#x3C;user_password> role [network-operator/network-admin] </td><td></td></tr><tr><td>Description</td><td>username configuration</td><td></td></tr><tr><td>Parameters</td><td>username</td><td></td></tr><tr><td>Mode</td><td>CONFIG</td><td></td></tr></tbody></table>

#### Example

```
pbnoscli# configure terminal 
pbnoscli(config)# username 
 <user_name>  
pbnoscli(config)# username test 
  password              Create user password
pbnoscli(config)# username test password 
  <user_pwd>            Enter password
pbnoscli(config)# username test password pass@123 role 
  network-admin         Admin
  network-operator      Operator
pbnoscli(config)# username test password pass@123 role network-admin 
pbnoscli#

pbnoscli(config)# no username test 
pbnoscli(config)#
```

You can verify the configuration by using the command(s) below:

```
pbnoscli# show users 
==================================
Users           Role                            
==================================
root            network-admin                   
test            network-admin                   
*admin          network-admin                   
pbnoscli#
```

```
pbnoscli# show running-config 
configure terminal
!
interface mgmt
ip address 10.4.4.52/24 gateway 10.4.4.1
!
username test role network-admin
!
pbnoscli# 
```
