When I try to log in with my azure personal account, I am redirected to a different organization’s portal.

Pablo Gutierrez 0 Reputation points
2025-12-20T14:40:31.3433333+00:00

I have a Microsoft 365 Personal subscription and created an application in Azure (Entra ID) to access my mailbox using the Microsoft Graph API. I configured the app with OAuth 2.0 and granted Mail.ReadWrite permissions.

I was able to successfully obtain an access token, but when attempting to send an email, I consistently received a “User not authorized” error. After troubleshooting for a long time, I discovered that the user associated with the application was defined as an external user.

To resolve the authorization issue, I attempted to change the user to an internal (B2B) user. Immediately after making this change, Azure returned an error. Since then, I have been unable to sign in to my account at all.

When I try to log in with my personal account, I am redirected to a different organization’s portal. I have tried signing out, using an InPrivate/Incognito browser session, and clearing the browser cache, but the issue persists. I am now completely locked out of my account and cannot revert the user back to an external user.

Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
0 comments No comments
{count} votes

Your answer

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