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.