nsx-mgr(config)# no user user1 ERROR: Could not delete user: user1
Unable to add the NSX CLI user.
nsx-mgr(config)# user user1 password plaintext abcd1234 Failed to add user. Note: You cannot use this command to change the passwd of an existing user. ERROR: could not add user:user1
Cause:
This issue occurs when the user is assigned with web-interface Privileges.
Environment
VMware NSX for vSphere 6.2.x VMware NSX for vSphere 6.4.x VMware NSX for vSphere 6.1.x VMware NSX for vSphere 6.3.x
Resolution
To resolve this:
negate the privilege given to the user.
nsx-mgr(config)# no user user1 privilege web-interface
Delete the User. nsx-mgr(config)# no user user1
Add the user with proper credentials. nsx-mgr(config)# user user1 password plaintext abcd1234
If you are unable to view the NSX CLI user from NSX Manager > Manage > Users
Run the POST API call to assign NSX Role to CLI user: