How can I register a Microsoft Graph app for personal OneDrive without an Azure subscription?

Valerio Borg 0 Punti di reputazione
2026-11-14T20:36:06.9833333+00:00

Hello,

I have a personal Microsoft account with a Microsoft 365 Family subscription and would like to develop a cloud integration using Microsoft Graph to manage files and folders in my personal OneDrive.

The application would use delegated permissions, such as Files.ReadWrite and offline_access, with OAuth 2.0 authentication.

However, I am unable to register an application because:

  • Accessing Microsoft Entra Admin Center returns error AADSTS16000, indicating that my personal Microsoft account cannot access the "Microsoft Services" tenant.

No manageable Microsoft Entra directory is available in my Azure account.

I successfully joined the Microsoft 365 Developer Program, but I am not eligible for a developer sandbox subscription.

My attempt to obtain an Azure free subscription was unsuccessful.

I understand that standard Microsoft Graph app registration does not necessarily require a paid Azure subscription, but an accessible Microsoft Entra tenant is still required.

My questions are:

Can I register a Microsoft Graph application supporting personal Microsoft accounts without purchasing an Azure subscription or Microsoft 365 Business?

Is there an official free method to obtain a Microsoft Entra ID tenant for this purpose?

What is the recommended registration and authentication process for a personal OneDrive application using delegated permissions?

Can this integration operate through a cloud-hosted service using refresh tokens, without requiring my personal computer to remain powered on?

I would appreciate step-by-step guidance for this scenario.

Thank you.Hello,

I have a personal Microsoft account with a Microsoft 365 Family subscription and would like to develop a cloud integration using Microsoft Graph to manage files and folders in my personal OneDrive.

The application would use delegated permissions, such as Files.ReadWrite and offline_access, with OAuth 2.0 authentication.

However, I am unable to register an application because:

Accessing Microsoft Entra Admin Center returns error AADSTS16000, indicating that my personal Microsoft account cannot access the "Microsoft Services" tenant.

No manageable Microsoft Entra directory is available in my Azure account.

I successfully joined the Microsoft 365 Developer Program, but I am not eligible for a developer sandbox subscription.

My attempt to obtain an Azure free subscription was unsuccessful.

I understand that standard Microsoft Graph app registration does not necessarily require a paid Azure subscription, but an accessible Microsoft Entra tenant is still required.

My questions are:

Can I register a Microsoft Graph application supporting personal Microsoft accounts without purchasing an Azure subscription or Microsoft 365 Business?

Is there an official free method to obtain a Microsoft Entra ID tenant for this purpose?

What is the recommended registration and authentication process for a personal OneDrive application using delegated permissions?

Can this integration operate through a cloud-hosted service using refresh tokens, without requiring my personal computer to remain powered on?

I would appreciate step-by-step guidance for this scenario.

Thank you.

Microsoft 365 e Office | OneDrive | Per la casa | Altro
0 commenti Nessun commento

1 risposta

Ordina per: Più utili
  1. Kai-H 32,080 Punti di reputazione Personale Esterno Microsoft Moderatore
    2026-11-15T09:26:54.9266667+00:00

    (I will answer you in English based on your previous message. As a friendly suggestion, posting in Italian may help your question reach a wider audience and increase the chances of receiving assistance from other community members.)

    Hi, @Valerio Borg

    Short version: yes, you can do this without paying for Azure or Microsoft 365 Business, but you still need a tenant to hold the app registration, and right now there is no standalone "just give me an empty Entra tenant" sign-up for personal accounts. The AADSTS16000 error is expected: a personal account by itself only lands in the "Microsoft Services" placeholder tenant, which can't host app registrations. Also, the Developer Program sandbox is now limited to Visual Studio subscribers and partners, so that door is closed for most individuals.

    The two official ways to get a free tenant are:

    Azure free account. Even though the sign-up failed for you once, try again in an InPrivate window with your personal account, and make sure your card and billing address match your Microsoft account info. The tenant gets created during Azure sign-up, and Entra ID Free is all you need. App registrations themselves cost nothing.

    Microsoft 365 Business Basic one-month trial. Sign up at the business page with any email, and it creates a work account plus a brand-new tenant. Cancel the trial before it bills; the tenant and your app registration stay usable on the free Entra tier afterwards.

    Once you have a tenant, go to entra.microsoft.com, Entra ID > App registrations > New registration. Under "Supported account types" pick "Personal Microsoft accounts only." Add a Web redirect URI pointing at your hosted service, then create a client secret under Certificates & secrets. Under API permissions add Microsoft Graph delegated Files.ReadWrite and offline_access (admin consent isn't needed for these).

    For authentication, use the OAuth 2.0 authorization code flow against https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize and /token. You sign in once in a browser with your personal account and consent; your server then stores the refresh token.

    To your last question: yes, a cloud-hosted service works fine with no PC involved. Refresh tokens last 90 days by default and a new one is issued each time you use it, so as long as your service runs at least once in 90 days and always saves the newest token, it will keep going. If you change your password, you'll have to sign in once more.

    Hope that gets you unblocked.

    La risposta è stata utile?


Risposta

Le risposte possono essere contrassegnate come "Accettata" dall'autore della domanda e "Consigliata" dai moderatori, in modo da consentire agli utenti di sapere che la risposta ha risolto il problema dell'autore.