Hi @Anonymous ,
Based on your description it sounds like you are using a personal account but may not have set up the application to support personal accounts. First, ensure that your user account is added as an external user in the Azure AD tenant. Then, follow these steps to ensure that the app is set up to support your account type:
- In the Azure portal, search for and select App registrations.
- Select the name of your app registration.
- In the sidebar, select Manifest.
- In the JSON code, find the signInAudience setting.
- Check whether the setting contains one of the following values:
- AzureADandPersonalMicrosoftAccount
- AzureADMultipleOrgs
- PersonalMicrosoftAccount
- If the signInAudience setting doesn't contain one of these values, re-create the app registration by having the correct account type selected. You currently can't change signInAudience in the manifest.
Also, please verify that you are using the correct endpoint and sign-on URL.
Your authentication call must target a URL that matches your selection if your app registration's supported account type was set to one of the following values:
- Accounts in any organizational directory (Any Azure AD directory - Multitenant)
- Accounts in any organizational directory (Any Azure AD directory - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)
- Personal Microsoft accounts only
The sign-on URL for multi-tenant and personal accounts is this one: https://login.microsoftonline.com/common
If your guest user account was added to the tenant and the settings for the app registration are aligned, I recommend reviewing the troubleshooting steps in Error AADSTS50020 - User account from identity provider does not exist in tenant to further diagnose the issue. If you tried all of the steps in the troubleshooting guide and still face this issue, please provide some screenshots of your app registration settings and tenant settings, and let me know whether this is happening for all accounts or just yours.
If the information helped you, please Accept the answer. This will help us as well as others in the community who may be researching similar issues.