VMware Cloud Community
skoyano
Contributor
Contributor

vSphere 7 u1 : "localaccounts.user.add" to add local user returns "Error in executing command: 8002"

Hi, Experts,

I am trying to add local user to vCenter (vSphere 7.0 u1) with root user on appliance shell.
However, it always results in an error as below and the created user is disabled state..
How can I check more details of the error to identify the root cause ?

 

Command> localaccounts.user.add --role operator --username vmanager --password
Enter password:
Reenter password:
Error in executing command: 8002


Command> localaccounts.user.list
Config:
1:
Username: root
Role: superAdmin
Fullname: root
Status: enabled
Passwordstatus: never_expire
Email: ''
2:
Username: sso-user
Role: ''
Fullname: ''
Status: disabled
Passwordstatus: notset
Email: ''
3:
Username: dnsmasq
Role: ''
Fullname: ''
Status: disabled
Passwordstatus: notset
Email: ''
4:
Username: vmanager
Role: admin
Fullname: vmanager
Status: disabled
Passwordstatus: notset
Email: ''

Command>

Labels (1)
0 Kudos
4 Replies
KaruneshThakur
VMware Employee
VMware Employee

This error message, we get once already user name is available and trying to create user with same name.

Tags (1)
0 Kudos
jor2dyngan
Contributor
Contributor

I have the same issue. how to fix that ?

0 Kudos
KaruneshThakur
VMware Employee
VMware Employee

User name which you are going to add , it will be already exist. can you check and try with another user name.

0 Kudos
jor2dyngan
Contributor
Contributor

same issue when using another account name

0 Kudos