pyvmomi-community-samples icon indicating copy to clipboard operation
pyvmomi-community-samples copied to clipboard

How to create a new user local using api

Open fabisd opened this issue 4 years ago • 0 comments

Hello, I need to create a new vsphere.local user using api. So far I have not been successful.

I tried something like:

user_spec = vim.HostAccountSpec () user_spec.id = 'test' user_spec.password = 'GfthjsieY73' vim.LocalAccountManager.CreateUser (user = user_spec)

Does anyone have an example of how to do this?

fabisd avatar Jan 26 '21 19:01 fabisd