A cloud-based identity and access management service for securing user authentication and resource access
Hello @Łukasz Boruń,
Thanks for using Q and A forum.
This situation typically arises when the app registration is set to a single-tenant account type, which prevents users from other directories or identity providers from signing in.
To resolve this issue, you should ensure that your app registration supports multiple account types.
You can do this by checking the signInAudience setting in the app registration manifest in the Azure portal. It should be set to one of the following values: AzureADandPersonalMicrosoftAccount, AzureADMultipleOrgs, or PersonalMicrosoftAccount. If it is not, you will need to recreate the app registration with the correct account type selected.
Additionally, if the application is intended to allow users from other organizations to sign in, ensure that you are using the correct sign-in URL. For multitenant applications, the URL should be https://login.microsoftonline.com/organizations. If you are using a tenant-specific URL, users from other organizations will not be able to access the application unless they are added as guests in the tenant.
Lastly, if the application is configured to allow personal accounts, ensure that the sign-in URL is set to https://login.microsoftonline.com/common.
If the Answer is helpful, please click Accept Answer and Up-Vote 👍, so that this can be beneficial to other community members.