After deploying an HCX Connector or HCX Cloud Manager appliance, administrators may be unable to log into the HCX Manager user interface on port 443 using vCenter SSO credentials.
Authentication appears to complete successfully, but the login ultimately fails and the user is denied access to the HCX UI.
The HCX Manager logs may show messages indicating that the SAML token was successfully parsed, followed by an authorization failure similar to:
AccessDeniedException: Could not assign NSP role based on logged in VCenter user group membershipsThe logs may also indicate that HCX expected membership in a specific SSO group (for example, an administrator group in the vsphere.local domain), while the authenticated user belongs to a group from a different identity source such as Active Directory.
As a result, HCX cannot assign an internal role and access to the HCX UI is denied.
VMware HCX (all supported versions)
HCX Connector or HCX Cloud Manager appliance deployed and registered with vCenter Server
vCenter Server configured with Single Sign-On (SSO) and potentially additional identity sources such as Active Directory
HCX assigns permissions through role mappings to vCenter SSO groups.
During login, HCX performs the following process:
Authenticates the user through vCenter Single Sign-On (SSO).
Retrieves the user's group memberships from vCenter.
Compares those groups against the groups defined in the HCX Role Mapping configuration.
Assigns an internal HCX role if a matching group is found.
If the group returned by vCenter SSO does not match any group configured in the HCX role mapping, HCX cannot assign a role to the user and login is denied.
This commonly occurs when the role mapping expects a group from the vSphere SSO domain, while the authenticated user belongs to a group from a different identity source, such as Active Directory.
Update the HCX role mapping configuration to include the correct group from the vCenter identity source.
If login to the HCX UI on port 443 is not possible, update the configuration through the HCX Appliance Management Interface (VAMI).
Access the HCX VAMI interface:
https://<HCX-Manager-FQDN>:9443After updating the role mapping, log in again to the HCX Manager UI:
Once the group mapping matches the group returned by vCenter SSO, HCX can successfully assign the internal administrative role and allow login to the HCX Manager interface.
or (Caution: the below method will add a group to the Administrators group in SSO Provider/vCenter giving the group vCenter Administration privileges)
Add a group the user is a member of to the SSO group in vCenter. Check the HCX Appliance Management Interface (VAMI): https://<HCX-Manager-FQDN>:9443 > Configuration > HCX Role Mapping and check the User Group configured under the HCX Administrator.
Example:
The account used to register vCenter via HCX Admin UI page must belong to the vSphere administrators group and have the administrator role assigned.
For more information, check HCX Manager User Account and Role Requirements
If the issue persists, also check the following KB: Unable to register vCenter SSO with HCX