Entra ID sign-in error
AADSTS16000: Account has not been added to this tenant
AADSTS16000 means the account you signed in with does not exist in this tenant. Common with personal Microsoft accounts. What users and admins can do.
AADSTS16000
User account '{EmailHidden}' from identity provider '{idp}' doesn't exist in tenant '{tenant}' and can't access the application '{appid}'({appName}) in that tenant.
What it means
The account you signed in with, from the identity provider named in the error, does not exist in this tenant and cannot use the app here. Microsoft notes it is common when someone opens the Microsoft Entra admin center with a personal Microsoft account that has no directory.
Fix it: tenant admins
- If the account should have access, invite it as an external (guest) user:
Entra ID > Users > New user > Invite external user.
Fix it: the person signing in
- Sign out and sign in again with the work or school account this organisation gave you.
- If you used a personal Microsoft account to open the Microsoft Entra admin center, that account has no directory of its own, so this error is expected. Use your work or school account. You need an Azure account and a new tenant only if you mean to run a directory of your own.
Related codes
Microsoft sources
- Error AADSTS50020 (same personal account scenario)
- Microsoft Entra authentication and authorization error codes (the full list)
- Microsoft's live lookup for 16000 (login.microsoftonline.com)
Find who is hitting AADSTS16000
Sign-in logs record the code without the AADSTS prefix: as status/errorCode in Microsoft Graph S04 and as ResultType in the SigninLogs table in Log Analytics S05. The SigninLogs and Microsoft Graph queries below cover interactive sign-ins. Non-interactive sign-ins are in the AADNonInteractiveUserSignInLogs table, which documents the error code in ResultSignature S41. If you query that table, test ResultType as well. For one failed sign-in, paste its error message into the lookup to get queries for its Correlation ID.
Log Analytics (KQL), last 7 days
SigninLogs
| where TimeGenerated > ago(7d) and ResultType == "16000"
| summarize Failures = count(), Last = max(TimeGenerated) by UserPrincipalName, AppDisplayName
| sort by Failures descMicrosoft Graph PowerShell, last 7 days
Connect-MgGraph -Scopes "AuditLog.Read.All"
$since = (Get-Date).ToUniversalTime().AddDays(-7).ToString("yyyy-MM-ddTHH:mm:ssZ")
Get-MgAuditLogSignIn -Filter "status/errorCode eq 16000 and createdDateTime ge $since" -All |
Select-Object CreatedDateTime, UserPrincipalName, AppDisplayName, CorrelationIdReading sign-in logs needs at least the Reports Reader role S06; the Graph call needs the AuditLog.Read.All permission S42, and -All returns every page of results S69.
Sources for this page
Microsoft's description is quoted from the Microsoft Entra error code reference; it is Microsoft's text and is not covered by our CC BY 4.0 licence. The cause and fix steps are our own wording, published under CC BY 4.0; each source below is the Microsoft page they rest on, with the passage we checked. Rules for every page are in the methodology.
S01. Microsoft (Microsoft Learn), Microsoft Entra authentication and authorization error codes. Retrieved 2026-11-25.
This account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Microsoft Entra user account.
This error is fairly common when you try to sign in to Microsoft Entra admin center by using personal Microsoft Account and no directory associated with it.
Error codes are subject to change at any time in order to provide more granular error messages
Error codes and messages are subject to change. For the most current info, take a look at the
You can also link directly to a specific error by adding the error code number to the URL
S33. Microsoft (Microsoft Learn), Error AADSTS50020: User account from identity provider does not exist in tenant. Retrieved 2026-11-25.
you are connected to the Microsoft Services tenant by default. Within the default tenant, there is no linked directory for performing any actions.
If you aim to have a directory, you must create an Azure account and a new tenant
S34. Microsoft (Microsoft Learn), Quickstart: Add a guest user and send an invitation. Retrieved 2026-11-25.
Select Invite external user from the menu.
S50. Microsoft (Microsoft Learn, Microsoft Entra External ID), Add B2B collaboration users. Retrieved 2026-11-25.
Select New user > Invite external user from the menu.
S04. Microsoft (Microsoft Learn, Microsoft Graph), signIn resource type. Retrieved 2026-11-25.
Supports $filter (eq) on errorCode property.
The request ID sent from the client when the sign-in is initiated. Used to troubleshoot sign-in activity.
S05. Microsoft (Microsoft Learn, Azure Monitor), Azure Monitor Logs reference - SigninLogs. Retrieved 2026-11-25.
Provides the 5-6 digit error code that's generated during a sign-in event. 0 indicates success; other values are failures.
The identifier that's sent from the client when sign-in is initiated.
S06. Microsoft (Microsoft Learn), How to troubleshoot sign-in errors. Retrieved 2026-11-25.
Reports Reader is the least privileged role required to access the activity logs.
any user can access their own sign-ins from https://mysignins.microsoft.com.
S41. Microsoft (Microsoft Learn, Azure Monitor), Azure Monitor Logs reference - AADNonInteractiveUserSignInLogs. Retrieved 2026-11-25.
Contains the error code, if any, for the sign-in operation.
S42. Microsoft (Microsoft Learn, Microsoft Graph), List signIns. Retrieved 2026-11-25.
To avoid having the request time out, apply the $filter parameter with a time range for which to get all sign-ins
Sign-ins that are interactive in nature
S69. Microsoft (Microsoft Learn, Microsoft Graph PowerShell), Get-MgAuditLogSignIn (Microsoft.Graph.Reports). Retrieved 2026-11-25.
-All List all pages.
