Cannot sign-in with any other account while using microsoft sign-in in my flutter app

Ashutosh Pandey 0 Reputation points
2024-09-05T12:03:40.51+00:00

User account from identity provider does not exist in tenant 'Default Directory' and cannot access the application 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 Act.

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

1 answer

Sort by: Most helpful
  1. Raja Pothuraju 5,255 Reputation points Microsoft Vendor
    2024-09-09T08:36:50.05+00:00

    Hello @Ashutosh Pandey,

    Thank you for posting your query on Microsoft Q&A.

    Based on your description, it seems that whenever you use any other account to sign in to your Flutter application, you encounter the error message: "AADSTS50020 - User account from identity provider does not exist in tenant 'Default Directory' and cannot access the application in that tenant. The account needs to be added as an external user in the tenant first."

    This error usually occurs if the user account you are trying to sign in with is not present in your tenant or if an unsupported account type (multitenant and personal accounts) is being used.

    To resolve this issue, I recommend checking if the user exists in your tenant. If not, invite the user to your tenant so they can access the application. Since multiple scenarios can trigger this error, I suggest reviewing the following document:

    Error AADSTS50020 - User account from identity provider does not exist in tenant

    If you're still facing issues, feel free to email me at AzCommunity@microsoft.com, referencing this issue with the subject line "ATTN: pothurajur" and include a link to this thread.

    I hope this information is helpful. Please feel free to reach out if you have any further questions.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Thanks,
    Raja Pothuraju.


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.