What the error means
AADSTS50034 is the Microsoft Entra code UserAccountNotFound. The sign-in reached a tenant, and that tenant has no account with the name that was sent. Microsoft's reference lists three explanations: the user mistyped the username, the user is not in the tenant, or the application chose the wrong tenant to sign in to, so the user who is signed in does not exist there.
The code also shows up on Windows devices. Microsoft's primary refresh token (PRT) troubleshooting article lists it as a common server error when a Windows sign-in cannot get a PRT, with the cause that Microsoft Entra ID cannot find the user account in the tenant. A separate article explains a confusing case on Microsoft Entra hybrid joined PCs: users intermittently see STATUS_ACCOUNT_DISABLED ("The user is disabled") although the account is enabled, and the AAD operational log shows AADSTS50034 behind it.
Common causes
- The user mistyped the username.
- The user is not in the tenant, for example a person from another organization who was never added as a guest.
- The application sent the sign-in to the wrong tenant.
- The on-premises user account is not synchronized to Microsoft Entra ID.
- On a hybrid joined PC, Windows could not reach a domain controller after hibernation, deep sleep, or before the VPN connected, so it sent the SAM account name instead of the full UPN.
How to fix it
1. Check the username
Make sure the user enters the full sign-in name (UPN), usually the work email address, and not a short name or a different account. As a general step, try a private browser window so a cached account is not reused.
2. Admins: confirm the account exists in the right tenant
Search for the user in the tenant named in the error. If the user belongs to another organization and should have access, Microsoft's reference says to add them as a guest. If the app sends users to the wrong tenant, the app's configuration needs to change.
3. Admins: check synchronization for on-premises users
Microsoft's PRT article says to make sure the on-premises user account is being synchronized to Microsoft Entra ID. On a Windows device, you can find the UPN that was actually sent in Event ID 1144 in the Microsoft Entra analytic logs in Event Viewer.
4. Hybrid joined PCs: wait, reboot or sign out fully
For intermittent STATUS_ACCOUNT_DISABLED errors, Microsoft says the issue typically resolves after waiting a few minutes and unlocking again, rebooting, or signing out completely and signing back in instead of unlocking. Microsoft treats the behavior as by design and recommends Entra-native deployments for the future, where the problem does not exist. The hybrid join troubleshooting guide covers checking the device state with dsregcmd.
dsregcmd /statusIf nothing works
Collect the username, the tenant ID from the error, the correlation ID and the time, and check the sign-in logs of that tenant. On a Windows device, include the AAD operational and analytic event logs. Microsoft's Viva Goals integration errors page lists a separate code, AADSTS500341, for an account that has been deleted from the directory.
What we checked
Four Microsoft Learn pages were read on 2026-11-21. The Microsoft Entra error code reference defines AADSTS50034 as UserAccountNotFound with the mistyped username, missing user and wrong tenant explanations. The primary refresh token troubleshooting article lists the UPN and synchronization checks and Event ID 1144. The STATUS_ACCOUNT_DISABLED article explains the hybrid join SAM account name case. The Viva Goals integration errors page lists AADSTS50034 next to AADSTS500341 for deleted accounts. The error was not reproduced for this page.
Last checked: 2026-11-21.