A server error occurred: 'com.vmware.vapi.std.errors.unauthorized': Permission to perform this operation was denied. Server error id: 'com.vmware.vapi.authorization.permission.denied'). Check | $Error[0].Exception.ServerError for more details
This is due to insufficient privileges to access vCenter Appliance Management APIs
Ensure that user accessing vCenter Appliance Management APIs is member of one of the following groups in the vCenter Single Sign-On Domain
A user in this group has full access to all the Appliance Management APIs. By default, a user who connects to the vCenter Server with SSH can access only commands in the restricted shell, but users in this group have Bash Shell Access over SSH and gain full privileges similar to the root user.
Members of the SystemConfiguration.Administrators group can view and manage the system configuration in the vCenter Server Management Interface running on port 5480. These users can view services, start and restart services, and troubleshoot services. These users can also access Appliance Management APIs except for those APIs that modify critical system configurations.
Members of this group can access vCenter Server Appliance read-only operations under Appliance Management.
Groups in the vCenter Single Sign-On Domain