WARN ... com.vmware.vidm.federation.login.processor.AuthResponseUserResolver - User fetching exception with nameId <UUID>, nameIdFormat ExternalId, and domains [domain.local], user not found
INFO ... com.vmware.vidm.federation.login.LoginEventServiceAspect - Failing login. ... exception: com.vmware.vidm.federation.login.AccessDeniedException: Access denied with reason code: USER_NOT_FOUND
vCenter Server 9.0
VMware Cloud Foundation 9.0
VMware vSphere Foundation 9.0
This issue may occur if user synchronization is performed before the Entra ID attribute mapping is configured in vCenter Server.
In this scenario, user records are initialized in the vCenter Server Database (VCDB) with default mapping values. This creates a mismatch between the stored ExternalId and the ObjectId defined in Entra ID provided during the OIDC handshake.
Because vCenter Server uses the externalId to identify synchronized users, it cannot locate the user record during subsequent login attempts, resulting in an "Access Denied" error.
1. Verify Entra ID Claim Mapping
Ensure that the Entra ID Enterprise Application is sending the correct attribute as the unique identifier.
In the Entra ID portal, verify that the Unique User Identifier (Name ID) or the OIDC claim mapped to externalId is set to objectid.
2. Isolate the Issue with a New User (Workaround)
Create a new user in Entra ID and assign them to the vCenter groups, then attempt to log in.
Note: If this login is successful, your SSO configuration is correct, and the issue is isolated to existing user record mismatches. If you choose to use this new user as a workaround for ongoing operations, you can skip the remaining steps.
3. Clear and Re-synchronize Identity Data (Recommended Resolution)
If you need to remediate the existing affected users, proceed with this step to reset and refresh the synchronized data:
In vSphere Client, navigate to Administration > Single Sign-On > Configuration.
Change the Identity Provider temporarily back to Embedded (Default). This action typically clears the synchronized SCIM user data from the vCenter database.
Re-configure or edit the Entra ID provider to re-trigger a full SCIM synchronization. This will populate the VCDB with the current and correct externalId values.