Entra IDTroubleshooting

Guest sign-in errors in Microsoft Entra ID: AADSTS90072, AADSTS50020 and cross-tenant blocks

Why B2B guests hit AADSTS90072, AADSTS50020, cross-tenant access blocks or tenant restrictions, and how to fix the account, the invitation or the policy and prove the guest can sign in.

A partner accepts your invitation, or thinks they did, and then can't open the Teams channel, SharePoint site or app you shared. The error says the account doesn't exist in your tenant, even though you can see the guest in the directory. In this post I'll show how to work out which account, invitation or policy is at fault, on your side or the guest's, and how to fix it.

Errors this guide fixes

  • AADSTS90072: User account '...' from identity provider '...' does not exist in tenant '...' and cannot access the applicationSign-in page
  • AADSTS50020: User account '...' from identity provider '...' does not exist in tenant '...' and cannot access the applicationSign-in page
  • AADSTS500213 NotAllowedByInboundPolicyTenantSign-in page / Microsoft Entra sign-in log
  • AADSTS500212 NotAllowedByOutboundPolicyTenantSign-in page / Microsoft Entra sign-in log
  • This invitation is blocked by cross-tenant access settings.Invite user (Entra admin center)
  • Your network administrator has restricted what organizations can be accessed.Sign-in page
  • AADSTS90071: An admin from ... must update their access settings to accept inbound multifactor authentication.Teams shared channel sign-in
  • Invitee's Admin has disallowed EmailVerified Users from being created in their tenantInvitation redemption
How this guide is organized: Symptoms → Why it happens → How to fix it → Verify the fix → Prevent it next timeFlow diagram of the article's sections in reading order: 1. Symptoms. 2. Why it happens. 3. How to fix it (6 steps: Read the sign-in log; Check the guest object; Fix the account mix-up; Reset redemption status; Check cross-tenant access on both sides; Problems in the guest's organization). 4. Verify the fix. 5. Prevent it next time. Toolbox: AADSTS500213, AADSTS500212, AADSTS500021, Entra ID › Users, PendingAcceptance.1Symptoms2Why it happens3How to fix it4Verify the fix5Prevent it nexttime1Read thesign-in log2Check theguest object3Fix theaccount mix…4Resetredemption s…5Checkcross-tenant…6Problems inthe guest's or…TOOLBOXAADSTS500213AADSTS500212AADSTS500021Entra ID › UsersPendingAcceptanceHow this guide is organized: Symptoms → Why it happens → How to fix it → Verify the fix → Prevent it next timeFlow diagram of the article's sections in reading order: 1. Symptoms. 2. Why it happens. 3. How to fix it (6 steps: Read the sign-in log; Check the guest object; Fix the account mix-up; Reset redemption status; Check cross-tenant access on both sides; Problems in the guest's organization). 4. Verify the fix. 5. Prevent it next time. Toolbox: AADSTS500213, AADSTS500212, AADSTS500021, Entra ID › Users, PendingAcceptance.1Symptoms2Why it happens3How to fix it1Read the sign-in log2Check the guest object3Fix the account mix-up4Reset redemption status5Check cross-tenant access on both sides6Problems in the guest's organization4Verify the fix5Prevent it next timeTOOLBOXAADSTS500213AADSTS500212AADSTS500021Entra ID › UsersPendingAcceptance
At a glance: how this guide is organized · 6 fix steps · 5 key tools

Symptoms#

The guest signs in and gets one of these on the Microsoft sign-in page:

Text
AADSTS90072: User account '...' from identity provider '...' does not exist in tenant '...' and cannot access the application '...' in that tenant. The account needs to be added as an external user in the tenant first.

AADSTS50020: User account '...' from identity provider '...' does not exist in tenant '...' and cannot access the application '...' in that tenant. This account needs to be added as an external user in the tenant first.

Your network administrator has restricted what organizations can be accessed. Contact your IT department to unblock access.
Code or messageMeaning (Microsoft's error reference)
AADSTS90072The external account the user signed in with doesn't exist in the tenant they signed into, so it can't satisfy that tenant's MFA requirements.
AADSTS50020UserUnauthorized: the account from that identity provider isn't in the tenant and can't access the app.
AADSTS16003SsoUserAccountNotFoundInResourceTenant: the user hasn't been explicitly added to the tenant.
AADSTS500213AADSTS500213 NotAllowedByInboundPolicyTenant: the resource tenant's cross-tenant access policy doesn't allow this user.
AADSTS500212AADSTS500212 NotAllowedByOutboundPolicyTenant: the user's own admin set an outbound policy that doesn't allow access to the resource tenant.
Network restriction messageTenant restrictions on the guest's network. AADSTS500021 ("Access to '...' tenant is denied") is the related code.

Inviting can fail too, with "This invitation is blocked by cross-tenant access settings." Teams shared channel users (B2B direct connect) can see "AADSTS90071: An admin from ... must update their access settings to accept inbound multifactor authentication."

Why it happens#

Why a guest can't get in after an invitationWhat does Get-MgUser show for the guest? if No result: Invite the guest (There's no guest object to sign in to.); if PendingAcceptance: Resend the invitation (Or send a tenant-specific link; it was never redeemed.); if Accepted: What do the error and the sign-in log point to? if Another account: Fix the account mix-up (Invited address in a private window, or reset redemption.); if 500213 or 500212: Fix cross-tenant access (500213: your inbound settings. 500212: the guest's outbound settings.); if Network message: Ask the guest's IT to allow you (Their tenant restrictions policy blocks your tenant.)What does Get-MgUser showfor the guest?FIXInvite the guestThere's no guestobject to sign in to.No resultFIXResend theinvitationOr send atenant-specific link;it was neverredeemed.PendingAcceptanceWhat do the error and thesign-in log point to?FIXFix the accountmix-upInvited address in aprivate window, orreset redemption.Another accountFIXFix cross-tenantaccess500213: yourinbound settings.500212: the guest'soutbound settings.500213 or 500212STOPAsk the guest's ITto allow youTheir tenantrestrictions policyblocks your tenant.Network messageAcceptedWhy a guest can't get in after an invitationWhat does Get-MgUser show for the guest? if No result: Invite the guest (There's no guest object to sign in to.); if PendingAcceptance: Resend the invitation (Or send a tenant-specific link; it was never redeemed.); if Accepted: What do the error and the sign-in log point to? if Another account: Fix the account mix-up (Invited address in a private window, or reset redemption.); if 500213 or 500212: Fix cross-tenant access (500213: your inbound settings. 500212: the guest's outbound settings.); if Network message: Ask the guest's IT to allow you (Their tenant restrictions policy blocks your tenant.)What does Get-MgUser show for the guest?No resultFIXInvite the guestThere's no guest object to sign in to.PendingAcceptanceFIXResend the invitationOr send a tenant-specific link; it was never redeemed.AcceptedWhat do the error and the sign-in log pointto?Another accountFIXFix the account mix-upInvited address in a private window, or resetredemption.500213 or 500212FIXFix cross-tenant access500213: your inbound settings. 500212: theguest's outbound settings.Network messageSTOPAsk the guest's IT to allow youTheir tenant restrictions policy blocks yourtenant.
Figure 1 · Decision tree Why a guest can't get in after an invitation. Check the guest object first, then the error and the sign-in log, to see whether the invitation, the account or a policy on either side is at fault.

An invitation creates a guest user in your tenant tied to an email address. On redemption, Microsoft Entra ID looks for the guest's home identity (a work account in their own tenant, a configured identity provider or a personal Microsoft account) and links it to the guest object. Errors follow when that link is missing or wrong:

  • Wrong account. The guest is signed in with a personal account or a second work account, not the one that was invited. The error names the identity provider, such as live.com, which gives this away.
  • Not invited, or invitation pending. The guest object doesn't exist, or hasn't been redeemed.
  • Home identity changed. The guest's account was deleted and re-created, or they moved company or want to use a different email.
  • Policy. Cross-tenant access settings block the user or app on either side, or the guest's network uses tenant restrictions.
  • Home organization rules. The guest's admin may prevent email-verified users from being created, or a federated user may not be synced to Microsoft Entra ID yet.

How to fix it#

1. Read the sign-in log#

In your tenant, open Entra ID › Monitoring & health › Sign-in logs, filter on the guest and add the Cross tenant access type filter. The entry shows the error code, the application and the home and resource tenants, which tells you which account the guest really used.

2. Check the guest object#

PowerShell
Connect-MgGraph -Scopes "User.Read.All"
Get-MgUser -Filter "mail eq 'alex@fabrikam.com'" `
    -Property DisplayName, UserPrincipalName, UserType, ExternalUserState, ExternalUserStateChangeDateTime |
    Select-Object DisplayName, UserPrincipalName, UserType, ExternalUserState, ExternalUserStateChangeDateTime

No result means there's no guest to sign in to: invite them. PendingAcceptance means the invitation was never redeemed; resend it or send a tenant-specific link such as https://myapps.microsoft.com?tenantId= followed by your tenant ID.

3. Fix the account mix-up#

Ask the guest to sign out of every Microsoft account or use a private window, then sign in with the exact invited address. Apps that send users to a generic sign-in endpoint can authenticate the guest against their home tenant instead of yours, so give guests tenant-specific links.

4. Reset redemption status#

If the guest redeemed with the wrong identity, or their home account changed, reset the redemption instead of deleting the user. Object ID, group memberships and app assignments are kept. With the Helpdesk Administrator or User Administrator role, open Entra ID › Users › the guest › Overview, select Reset redemption status in the B2B collaboration tile, then Reset. To change the sign-in email, update Email and Other emails first. With PowerShell:

PowerShell
Connect-MgGraph -Scopes "User.Invite.All","User.ReadWrite.All"
$user = Get-MgUser -Filter "startsWith(mail, 'alex@fabrikam.com')"
New-MgInvitation -InvitedUserEmailAddress $user.Mail `
    -InviteRedirectUrl "https://myapps.microsoft.com" `
    -ResetRedemption -SendInvitationMessage -InvitedUser $user

5. Check cross-tenant access on both sides#

AADSTS500213 is your side: review Entra ID › External Identities › Cross-tenant access settings, the default and any organizational settings, and their Inbound access › B2B collaboration users, groups and applications. AADSTS500212 is the guest's side: their admin must allow your tenant in their outbound settings. A blocked invitation can be either side. Also check the allow or deny domain list in External collaboration settings. The cross-tenant access settings guide explains each setting.

6. Problems in the guest's organization#

  • Network restriction message or AADSTS500021: the guest's IT must add your tenant to their tenant restrictions policy.
  • "Invitee's Admin has disallowed EmailVerified Users from being created in their tenant": their admin must allow email-verified users, or provide a proper account.
  • Federated domain, user not in Microsoft Entra ID: their admin must sync the account before it can be invited.
  • No invitation email: allow Invites@microsoft.com in their spam filtering.
  • AADSTS90071 in a Teams shared channel: the host organization must trust inbound MFA in its cross-tenant access settings.

Verify the fix#

  • The guest's ExternalUserState is Accepted.
  • The guest opens a tenant-specific link and reaches the resource without an error.
  • Your sign-in log shows Success with the right home tenant, and the Conditional Access tab shows which policies applied. If MFA is now the blocker, see AADSTS50076, AADSTS50079 and AADSTS50158; for policy blocks, AADSTS53000 vs AADSTS53003.

Prevent it next time#

  • Invite the address the guest will actually sign in with, and send tenant-specific links rather than generic portal URLs.
  • Configure organizational cross-tenant settings for regular partners, and agree on inbound and outbound rules with their admins before a project starts.
  • Trust partner MFA where appropriate, so guests don't register a second set of methods in your tenant.
  • Review guests stuck in PendingAcceptance regularly. More codes are in the AADSTS error codes quick reference.

References#

Written and checked against current Microsoft Learn documentation. Test changes with a pilot group before rolling them out to everyone, and if an admin center path has moved since, search for the setting name instead.

Spotted a mistake, or did this fix work differently for you? Email me or message me on LinkedIn — corrections are credited in the article.

Written by

Omer Eltayeb

Intune Subject Matter Expert in Cairo, Egypt, former Microsoft Cloud Solutions Architect, Microsoft Certified Trainer and Microsoft Innovative Educator Expert (2024–26) and Microsoft Elevate Educator Expert (2026–27). I share practical, step-by-step guides, study plans, scripts and toolkits for Microsoft Intune, Configuration Manager, Microsoft Entra ID, Microsoft Defender, Exchange and Microsoft 365 with the community.

Microsoft Certified Trainer (MCT) 2026Microsoft Innovative Educator Expert 2025–2026Microsoft Elevate Educator Expert 2026–2027ISC2 Certified Information Systems Security Professional (CISSP)Microsoft 365 Certified: Enterprise Administrator Expert (MS-102)