C:\Users\<exampleUser> Connect-CisServer vcenter.example.com
Name User Port
---- ---- ----
[email protected]@example.com... 443
"Unable to authorize user" while executing any vCenter Server Appliance Configuration / VAMI related queries:C:\Users\exampleUser> (Get-CisService -Name com.vmware.appliance.ntp)[0].get()
A server error occurred: 'com.vmware.vapi.std.errors.unauthorized': Unable to
authorize user (Server error id: 'vapi.security.authorization.invalid'). Check
$Error[0].Exception.ServerError for more details.
At line:1 char:1
+ (Get-CisService -Name com.vmware.appliance.ntp)[0].get()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], CisServerException
+ FullyQualifiedErrorId : VMware.VimAutomation.Cis.Core.Types.V1.CisServer
Exception
C:\Users\vTestUser> Connect-CisServer vcenter.example.com
Name User Port
---- ---- ----
[email protected]... [email protected] 443
PS C:\Users\exampleUser> (Get-CisService -Name com.vmware.appliance.ntp)[0].get()
time.example.com
If the vCenter Server is not added to the required Domain Controller, access to the vCenter Server appliance level components using domain credentials is not allowed.
To grant appliance level configuration permissions to domain users, add the vCenter server to the required domain controller.
Reference Join or Leave an Active Directory Domain for details.