Access denied. Unable to authenticate the user" after entering the credentials, as shown in screenshot below:/var/log/vmware/vc-ws1a-broker/federation-service.logYYYY-MM-DDTHH:MM:SS,### INFO <vc_name.example.com>:federation (federation-business-pool-0) [CUSTOMER;-;###.###.###.###;<UID>;-;-] com.vmware.vidm.federation.login.context.LoginContextManager - Created new login context with id: fab7####-####-4cae-####-c7fb########
YYYY-MM-DDTHH:MM:SS,### INFO <vc_name.example.com>:federation (vert.x-eventloop-thread-2) [-;-;-;-;-;-] org.bouncycastle.jsse.provider.ProvTlsClient - [client #13 @2147904e] opening connection to login.microsoftonline.com:443YYYY-MM-DDTHH:MM:SS,### INFO <vc_name.example.com>:federation (vert.x-eventloop-thread-2) [-;-;-;-;-;-] org.bouncycastle.jsse.provider.ProvTlsClient - [client #13 @2147904e] established connection with login.microsoftonline.com:443
YYYY-MM-DDTHH:MM:SS,### INFO <vc_name.example.com>:federation (federation-business-pool-0) [CUSTOMER;-;###.###.###.###;<UID>;-;fab7####-####-4cae-####-c7fb########] com.vmware.vidm.federation.utils.MetricsPublisherUtil - OIDC authentication successful
YYYY-MM-DDTHH:MM:SS,### INFO <vc_name.example.com>:federation (federation-business-pool-0) [CUSTOMER;-;###.###.###.###;<UID>;-;fab7####-####-4cae-####-c7fb########] com.vmware.vidm.federation.login.processor.AuthResponseUserResolver - Fetching user for jit login context: fab7####-####-4cae-####-c7fb######## on attribute ExternalId=priq9X################################SgCJUs, domains: [example.com]
YYYY-MM-DDTHH:MM:SS,### WARN <vc_name.example.com>:federation (ForkJoinPool-2-worker-1571) [CUSTOMER;-;###.###.###.###;<UID>;-;fab7####-####-4cae-####-c7fb########] com.vmware.vidm.federation.login.processor.AuthResponseUserResolver - User fetching exception with nameId priq9X################################SgCJUs, nameIdFormat ExternalId, and domains [example.com], user not foundYYYY-MM-DDTHH:MM:SS,### INFO <vc_name.example.com>:federation (federation-business-pool-0) [CUSTOMER;-;###.###.###.###;<UID>;-;fab7####-####-4cae-####-c7fb########] com.vmware.vidm.federation.login.LoginEventServiceAspect - Failing login. contextUuid: fab7####-####-4cae-####-c7fb########, exception: com.vmware.vidm.federation.login.AccessDeniedException: Access denied with reason code: USER_NOT_FOUND, isAuthenticationForced: falseYYYY-MM-DDTHH:MM:SS,### INFO <vc_name.example.com>:federation (federation-business-pool-0) [CUSTOMER;-;###.###.###.###;<UID>;-;fab7####-####-4cae-####-c7fb########] com.vmware.vidm.federation.utils.MetricsPublisherUtil - Login failed due to reason: USER_NOT_FOUNDYYYY-MM-DDTHH:MM:SS,### INFO <vc_name.example.com>:federation (federation-business-pool-0) [CUSTOMER;-;###.###.###.###;<UID>;-;fab7####-####-4cae-####-c7fb########] com.vmware.vidm.federation.exception.handler.LoginExceptionHandler - Access denied for login context: fab7####-####-4cae-####-c7fb########
This is caused when the Unique Identifier in OIDC attribute on VCF SSO is set to sub. However, EntraID user token has oid mapped to the user's Object Id as unique identifier.
Change the Unique Identifider in VCF SSO configuration to user oid instead of sub by following steps below: