Microsoft 365 sign-in (Entra ID)

AADSTS50034: the user account does not exist in the directory

AADSTS50034 means Microsoft Entra ID cannot find the account in the tenant: a mistyped name, wrong tenant, unsynced user, or a PC sending the wrong name.

By EpiFive Editorial TeamSources checked How we check our guides

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 /status

If 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.

Official sources

Questions people ask

What does AADSTS50034 mean?

Microsoft lists it as UserAccountNotFound: Microsoft Entra ID cannot find the account in the tenant. The user may have mistyped the username, may not be in that tenant, or the app may have sent the sign-in to the wrong tenant.

My hybrid joined PC says the account is disabled, but it is not. Is that AADSTS50034?

It can be. Microsoft documents intermittent STATUS_ACCOUNT_DISABLED errors on hybrid joined PCs where Windows sent the SAM account name instead of the UPN, Microsoft Entra ID returned AADSTS50034, and Windows mapped it to the disabled message. It usually clears after a few minutes, a reboot or a full sign-out.

Should I add the user as a guest to fix AADSTS50034?

Only if the user is from another organization and should have access. Microsoft's reference says that if the user should be able to log in, add them as a guest. For your own employees, check the username and synchronization instead.

Guides that mention AADSTS50034

Not your code?

Search the error code library, or report a code we don't cover. Spotted something out of date on this page? Report a correction.