Troubleshooting Microsoft sign-in issue with OIDC flow for organization/school users

Guanda Li 0 Reputation points
2024-06-20T06:18:28.7066667+00:00

I'm trying to implement sign-in with Microsoft using the OIDC flow in my application. However, when I test with my work account or Microsoft account xxx@microsoft.com, I get error messages saying that the Microsoft account doesn't exist or that the account can't be used for this purpose because it belongs to an organization. My application manifest includes "signInAudience": "AzureADandPersonalMicrosoftAccount". Can anyone help me troubleshoot this issue?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,700 questions
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 24,661 Reputation points Microsoft Employee
    2024-07-01T18:23:34.7733333+00:00

    Hi @Guanda Li , if you're using an external identity like indeed, you need to add it as an identity provider. For your second error, to use a Microsoft account you need to make sure that it is a personal Microsoft account and not associated with an organization. You can create a new personal Microsoft account if you don't already have one.

    Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.