You can update an existing local user account in the vCenter Server Appliance.

For information about the user roles, see User Roles in the vCenter Server Appliance.

Procedure

  1. Access the appliance shell and log in as a user who has a super administrator role.
    The default user with a super administrator role is root.
  2. Run the localaccounts.user.set --username command to update an existing local user.
    • To update the role of the local user, run the following command:
      localaccounts.user.set --username user name --role new role
      Here, user name is the name of the user that you want to edit and new role is the new role. The role can be operator, admin, or superAdmin.
    • To update the email of the local user, run the following command:
      localaccounts.user.set --username user name --email new email address
      Here, user name is the name of the user that you want to edit and new email address is the new email address.
    • To update the full name of the local user, run the following command:
      localaccounts.user.set --username user name --fullname new full name
      Here, user name is the name of the user that you want to edit and new full name is the new full name of the user.
    • To update the status of the local user, run the following command:
      localaccounts.user.set --username user name --status new status
      Here, user name is the name of the user that you want to edit and status is the new status of the local user. The status can be either disabled or enabled.