Share via

Register an Application to access my personal Onedrive

Gerald Fuchs 5 Reputation points
2025-12-23T12:55:10.7266667+00:00

I want to register an application (lets say a python app like in https://github.com/zweckj/onedrive-personal-sdk.git ) to access my OneDrive on my personal Windows 365 account.

I understood that I need to go to Entra ID to do the registration, but I think this does not work, because my tenant does not exist or is deactivated. At least I do get an error saying this.

Is there another way to register an application for a Personal/Familiy office 365 account?
Screenshot 2025-12-23 135338

Microsoft 365 and Office | OneDrive | For home | Other
0 comments No comments

1 answer

Sort by: Most helpful
  1. Noel Macadangdang 16,805 Reputation points Independent Advisor
    2025-12-23T14:28:59.6633333+00:00

    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


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.