USER_NOT_FOUND./var/log/vmware/vc-ws1a-broker/federation-service.log:YYYY-MM-DDTHH:MM:SS INFO <vc_fqdn>:federation (federation-business-pool-0) [CUSTOMER;-;<client_ip_address>;########-cbe2-42c4-bef3-############;-;########-d6da-4f6a-a626-############] com.vmware.vidm.federation.login.processor.AuthResponseUser
Resolver - Fetching user for jit login context: ########-d6da-4f6a-a626-############ on attribute ExternalId=<user_external_id>, domains: [example.com]
YYYY-MM-DDTHH:MM:SS WARN <vc_fqdn>:federation (ForkJoinPool-2-worker-3542) [CUSTOMER;-;<client_ip_address>;########-cbe2-42c4-bef3-############;-;########-d6da-4f6a-a626-############] com.vmware.vidm.federation.login.processor.AuthResponseUser
Resolver - User fetching exception with nameId ########-f0eb-49d9-a318-############, nameIdFormat ExternalId, and domains [example.com], user not found
YYYY-MM-DDTHH:MM:SS INFO <vc_fqdn>:federation (federation-business-pool-0) [CUSTOMER;-;<client_ip_address>;########-cbe2-42c4-bef3-############;-;########-d6da-4f6a-a626-############] com.vmware.vidm.federation.login.LoginEventServiceAspect -
Failing login. contextUuid: ########-d6da-4f6a-a626-############, exception: com.vmware.vidm.federation.login.AccessDeniedException: Access denied with reason code: USER_NOT_FOUND, isAuthenticationForced: false
YYYY-MM-DDTHH:MM:SS INFO <vc_fqdn>:federation (federation-business-pool-0) [CUSTOMER;-;<client_ip_address>;########-cbe2-42c4-bef3-############;-;########-d6da-4f6a-a626-############] com.vmware.vidm.federation.utils.MetricsPublisherUtil - Log
in failed due to reason: USER_NOT_FOUNDThis issue can occur if a user is removed from and later re-added to an Entra ID group that is synced with vCenter via SCIM. Even though SCIM provisioning appears successful, the user cannot log in because of an ExternalId mismatch in vCenter Identity Database (VIDB).
When a user is removed and re-added to an Entra ID group:
During login, vCenter queries VIDB using the ExternalId provided by Entra. If no matching entry is found, login fails with USER_NOT_FOUND.
echo -n '<Admin_SSO>:<Password>' | base64
curl -k --location --request POST 'https://<vc-fqdn>/api/session' --header 'Authorization: Basic <base64-encoded-value>'
Record the vmware-api-session-id from the response.curl -k --location 'https://<vc-fqdn>/api/vcenter/identity/broker/tenants/customer/admin-client' --header 'vmware-api-session-id: <value from Step 2a>'
Record the access_token returned from the response.curl -k --location 'https://<vc-fqdn>/usergroup/t/CUSTOMER/scim/v2/Users/' --header 'Authorization: Bearer <access_token_from_step_2b>' -o /storage/core/vidb_users.txt -s -w "\nHTTP Status: %{http_code}\n"python -c "import jsonwith open('/storage/core/vidb_users.txt', 'r') as f: for user in json.load(f).get('Resources', []): if user.get('userName') == '<USERNAME>': print('Internal ID: ' + str(user.get('id'))) print('External ID: ' + str(user.get('externalId')))"
curl -k -X POST "https://<vc-fqdn>/rest/com/vmware/cis/session" -H "Content-Type: application/json" -H "Authorization: Basic $(echo -n '<vcenter_sso_user_name>:<vcenter_sso_user_password>' | base64)"curl -k -X GET "https://<vc-fqdn>/api/vcenter/identity/broker/tenants/customer/admin-client" -H "Content-Type: application/json" -H "vmware-api-session-id: <value from above>"curl -k -X POST "https://<vc-fqdn>/usergroup/t/CUSTOMER/scim/v2/Users/.search" -H "Content-Type: application/scim+json" -H "Authorization: Bearer <token from the above command>" \-d '{ "attributes": [ "emails", "urn:ietf:params:scim:schemas:extension:ws1b:2.0:User:name", "name.familyName", "userName", "urn:ietf:params:scim:schemas:extension:ws1b:2.0:User:domain", "groups" ], "filter": "userName eq \"<USERNAME>\" and domain eq \"<DOMAIN>\"" }'To prevent future mismatches, configure Entra ID SCIM app to send the Object ID as an attribute.
Object ID is consistent for the user and ensures stable ExternalId mapping in VIDB.
Microsoft reference: Tutorial - Customize Microsoft Entra attribute mappings in Application Provisioning - Microsoft Entra ID | Microsoft Learn
Always validate users and groups in VIDB with SCIM APIs:
Get vCenter session ID
Retrieve Tenant Admin Token
List or search users