If the account or identity provider displayed in the AADSTS50020 message is not the one intended for the target tenant, sign out of every Microsoft session and retry in an InPrivate or Incognito window using the work/school account—or invited guest account—that was granted access.
End-user check
- On the error page, note:
- User account
- Identity provider
- Tenant
- Application name or ID
- Correlation ID and timestamp, if shown
- Compare the displayed user and identity provider with the account that should access the Windows 365 resource.
- If they do not match:
- Sign out of all Microsoft accounts.
- Close the browser.
- Open an InPrivate/Incognito window or another browser.
- Sign in with the intended organizational or invited guest account.
This is the documented resolution when an existing session sends the wrong personal or organizational identity to the application.^1^
Tenant administrator checks
If the correct account still fails, a tenant administrator should identify the matching branch below.
1. Confirm the failed sign-in
An administrator with at least Reports Reader can open:
Microsoft Entra admin center → Entra ID → Monitoring & health → Sign-in logs
Filter by username, application, failure status, timestamp, or correlation ID. Open the event and record the failure reason, tenant, application, user ID, and sign-in identifier.^2^
2. The user is external and has not been invited
If the sign-in event shows that the account does not exist in the resource tenant, an administrator of that tenant must invite it as a guest. After invitation redemption, grant the guest access to the relevant Windows 365 or enterprise application. A user cannot add themselves to another tenant.^3^
3. The enterprise application requires assignment
In the Azure portal:
- Open Enterprise applications.
- Select the affected application.
- Open Properties.
- Check Assignment required.
- If it is Yes, assign the user directly or through an assigned group.
AADSTS50020 can occur when assignment is required but the user is not included in the application’s allowed users or groups.^1^
4. A guest account was deleted and later re-created
Check whether the guest object in the resource tenant predates the re-created home-tenant user:
$p = @('Id', 'UserPrincipalName', 'CreatedDateTime')
Get-MgUser -UserId [Email] -Property $p |
Select-Object $p
If the guest object is older, reset its redemption status in the resource tenant. This preserves the guest object instead of deleting and rebuilding it.^1^
Application-side branches
These apply only if this is a custom application rather than the standard Windows 365 client or portal:
- Single-tenant registration: Users from other directories cannot sign in unless invited as guests. If the application is intended for multiple organizations, re-register it with the appropriate supported account type.
- Wrong authority: Use
organizations for multitenant organizational accounts, common for organizational plus personal accounts, or consumers for personal accounts.
- ROPC authentication: Personal Microsoft accounts cannot use the Resource Owner Password Credentials flow. Use a tenant-specific or
organizations endpoint with an organizational account instead.^1^
Windows 365 escalation
If the tenant, guest object, and application assignment are correct, open a Windows 365/Intune support case and include the correlation ID, UTC timestamp, application ID, resource tenant ID, displayed identity provider, and relevant interactive and non-interactive sign-in events.
If the affected endpoint is specifically a Windows 365 Link device, collect its Intune diagnostics and review sign-in events originating from that device; Windows 365 support is included with the subscription.^4^
References
- Error AADSTS50020 - User account from identity provider does not exist in tenant
- How to troubleshoot Microsoft Entra sign-in errors
- Troubleshoot common issues with Microsoft Entra B2B collaboration
- Troubleshooting Windows 365 Link