IT Error Decoder

How to Fix AADSTS50034: User does not exist

Last reviewed

Error message

AADSTS50034: The user account <user> does not exist in the <tenant> directory.

AADSTS50034 is one of the most common 'wrong account' errors. Half the time it's a typo; the other half it's a tenant mismatch.

What this error means

Sign-in failed because the username doesn't resolve to any user object in the tenant the request was sent to.

Why this happens

Typo in the UPN, the user signs in with a different domain than what they typed, the user is in a different tenant, or the account is soft-deleted.

Quick fix (for end users)

  • Re-type the email address slowly, watching for autofill mistakes.
  • If the user has multiple work accounts, make sure they're typing the right one.

Admin / engineer fix

  • Confirm the UPN exists in your tenant.

    command
    Get-MgUser -UserId <upn>
  • If the user was recently deleted, restore from the recycle bin within 30 days.

    command
    Restore-MgDirectoryDeletedItem -DirectoryObjectId <id>
  • Check whether the email address is a proxy/alias; sign-in must use the UPN unless alternate sign-in is enabled.

Step-by-step fix

  1. Verify the typed UPN matches a real user in the right tenant.

  2. If deleted, restore.

  3. Retry sign-in.

Affected products

Microsoft Entra ID

Common variations of this error

People also see these phrasings of the same problem:

  • AADSTS50034: User account does not exist

Still broken? Try these

  • Try sign-in in private browsing to avoid SSO sending a stale account.
  • For B2B guests, ensure they're invited and have redeemed the invitation.

Related errors

Related searches

  • aadsts50034 fix
  • entra user does not exist

Frequently asked questions

How long can I restore a deleted user?

Soft-deleted users can be restored for up to 30 days. After that, they're permanently removed.

Browse more errors in Entra ID: Fix Microsoft Entra ID (Azure AD) errors. AADSTS error codes, admin consent, app role assignment, Conditional Access, and user lookup problems. Or paste your own error into the error decoder tool to find a match. You can also go back to the homepage to browse common errors by topic.