What it means
The user account isn't in the directory. Usually a typo in the username, or the app sent the user to the wrong tenant.
Common causes
- The username was mistyped, or the account does not exist in this tenant.
- The application sent the sign-in to the wrong tenant, so the signed-in user is not in the directory it requested.
- The person should have access as a guest, but they have not been invited (or have not redeemed the invitation) yet.
Quick checks
- Open Entra admin center → Entra ID → Monitoring & health → Sign-in logs, find the failed event, and copy the Correlation ID, date, and time.
- Read the Failure reason and Additional Details, and compare the username that was submitted with UPNs in this tenant.
- Confirm the user exists here (and has synced, if hybrid). If the account is only in another tenant, this may be the wrong directory.
- Check the application's tenant / authority setting if many users are sent to a tenant they do not belong to.
How to fix it
If you are the user
- Check the username, including the domain, and try again. If you have more than one work or school account, sign out and use the one that belongs to this organization.
- If you were invited as a guest, redeem the invitation and sign in with the mailbox that received it, preferably in a private browser window.
If you are an admin
- Confirm the account exists in Entra admin center → Entra ID → Users, and that the UPN the user is typing matches the directory. For hybrid users, confirm they have synchronized.
- If this person should have access but is not a member, invite them as a B2B guest and have them redeem the invite.
- If an app is sending users to the wrong tenant, fix the app's tenant or authority setting.
Related Conditional Access / MFA notes
If the account is not in this directory, Conditional Access and MFA in this tenant cannot apply to it. For external users who should have access, invite them as guests (see also AADSTS50020). A typo can look like AADSTS50126 once the username is a valid UPN that exists.
When to escalate
Escalate if the account exists, the username is correct, and sign-in still fails after a directory sync, or if many users are sent to the wrong tenant. Include the UPN, tenant, application ID, and Correlation ID.
Official references
- Microsoft's AADSTS error code reference (opens in a new tab)
- Official lookup for AADSTS50034 (opens in a new tab)
- Add B2B guest users (opens in a new tab)