e.g.
PS C:\Users\exampleUser> Connect-CisServer exampleVC.example.com
Name User Port
---- ---- ----
[email protected]...exampleUser@example.com... 443
PS 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
PS C:\Users\vTestUser> Connect-CisServer exampleVC.example.com
Name User Port
---- ---- ----
[email protected]... [email protected] 443
PS C:\Users\exampleUser> (Get-CisService -Name com.vmware.appliance.ntp)[0].get()
If vCenter server is not added to the required Domain controller, you won't be able to access vCenter server Appliance level components using domain credentials.
To grant Appliance level configuration permissions to Domain Users, add vCenter server to the required domain controller.
Refer this document to Add vCenter server to domain controller: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/configuring-vcenter-server-8-0/configuring-vcenter-server-using-the-vsphere-client/join-or-leave-an-active-directory-domain.html