A Microsoft file hosting and synchronization service.
Hi,
I get why it's annoying when you're trying to hook up a Python app to your OneDrive and the usual Entra ID thing doesn't work. It's a pain when your tenant is missing or says it's off, especially right after you buy it.
That error happens because personal Microsoft (MSA) accounts don't have a typical Azure AD tenant. Microsoft says you can still register apps in Azure App registrations if you pick the account type that says personal Microsoft accounts. Then you can get in through Microsoft Graph. Setting up Redirect URIs and permissions is pretty much the same as with work or school accounts.
Here's how to fix it
What's going on and How to fix
You gotta register your app through the Azure portal, in App registrations, even if you don't have an Entra ID tenant:
Log into Azure at portal.azure.com with your personal Microsoft account.
Make a New registration: Name your app and, for Supported account types, pick Accounts in any organizational directory and personal Microsoft accounts.
Put in your Redirect URI (like http://localhost:… for testing), and register.
Head to API Permissions and allow Microsoft Graph delegated scopes, like Files.ReadWrite.All and offline_access.
Go to Certificates & Secrets to make a client secret.
Use the common or consumers endpoint in your OAuth flow to snag tokens from personal accounts.
I hope this helps.
Best Regards,
Noel