Create a Local User
Account on an ESXi System
You can use the
API to create a user account on an ESXi system.
- Obtain a managed object reference to theHostLocalAccountManagerof the target system.
- Create aHostAccountSpecdata object that defines the properties of the user account, including description and password.Define account names and passwords according to the configuration required by your ESXi system for user account naming conventions and password requirements, such as minimum length, character set, and other requirements.
- Call theHostLocalAccountManager.CreateUserAccountmethod, passing in the managed object reference (from step 1) and theHostAccountSpecdata object (step 2).After creating user accounts on the ESXi system, you can grant these users access to virtual components by usingAuthorizationManagermethods. See Managing Roles and Permissions with AuthorizationManager.