VMware Cloud Community
lurims
Enthusiast
Enthusiast
Jump to solution

How do I elevate the ESXi local user permissions to "admin" using vRO object?

Which vRO object needs to be used to elevate the ESXi local user permissions to "admin" using vRO object?

0 Kudos
1 Solution

Accepted Solutions
lurims
Enthusiast
Enthusiast
Jump to solution

Seems I can try using VCHostAccessMode.accessAdmin.

This is working now.

host is of type VC:HostSystem

host.configManager.hostAccessManager.changeAccessMode(userName,false,VcHostAccessMode.accessAdmin)

other possible methods - https://www.vmware.com/support/orchestrator/doc/vro-vsphere65-api/html/VcHostAccessMode.html#accessA...

View solution in original post

1 Reply
lurims
Enthusiast
Enthusiast
Jump to solution

Seems I can try using VCHostAccessMode.accessAdmin.

This is working now.

host is of type VC:HostSystem

host.configManager.hostAccessManager.changeAccessMode(userName,false,VcHostAccessMode.accessAdmin)

other possible methods - https://www.vmware.com/support/orchestrator/doc/vro-vsphere65-api/html/VcHostAccessMode.html#accessA...