Thank you for your post!
Error Message:
User account {email} from identity provider {idp} does not exist in tenant {tenant} and cannot access the application {appId}({appName}) in that tenant. The account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account.
Based off your error message, it looks like the user that you're trying to sign-in with doesn't exist within the tenant and can't login. Since there are several causes for your issue and to hopefully help point you in the right direction or resolve your issue, I'll share my findings below.
Findings:
When it comes to the error message that you received, you should be able to reference the Error AADSTS50020 documentation to resolve your issue.
- Cause 1: Used unsupported account type (multitenant and personal accounts)
- Cause 2: Used the wrong endpoint (personal and organization accounts)
- Cause 3: Signed in to the wrong tenant
- Cause 4: Guest user wasn't invited
- Cause 5: App requires user assignment
- Cause 6: Tried to use a resource owner password credentials flow for personal accounts
- Cause 7: A previously deleted user name was re-created by the home tenant administrator
If you didn't have any issues logging in to your Azure AD tenant / Portal previously, you can try to:
- Log-in through a private browsing session to reduce the potential for logging into the incorrect tenant.
- If your user belongs to multiple tenants, you can navigate to the appropriate tenant using the URL -
https://portal.azure.com/<tenantName or tenantID>
Additional Links:
If you're still having issues, can you share a screenshot of your error message or copy and paste the Correlation ID and Timestamp so I can take closer look into your issue.
I hope this helps!
If you have any other questions, please let me know. Thank you for your time and patience throughout this issue.
If the information helped address your question, please Accept the answer. This will help us and also improve searchability for others in the community who might be researching similar information.