Microsoft Graph returns HTTP 401 for personal Outlook.com calendar with delegated Calendars.ReadBasic

Ross Docherty 0 Reputation points
2026-11-26T17:31:05.87+00:00
I’m testing read-only calendar access for a disposable personal Outlook.com account. The account can open Calendar in Outlook.com. Microsoft issues an access token, and the token response includes Calendars.ReadBasic, but Microsoft Graph returns HTTP 401.

Configuration
- The Microsoft Entra app registration supports personal Microsoft accounts only.
- Both clients use the /consumers authority and delegated authorization code flow with PKCE (S256).
- Calendars.ReadBasic is the only Microsoft Graph permission requested. The flow also requests offline_access, and the MSAL control test requests openid for sign-in.
- The account owner granted consent directly on Microsoft’s consent screen.

Reproduction
1. In the hosted app, GET /v1.0/me/calendars returned HTTP 401 with a fresh access token and again after a successful token refresh.
2. GET /v1.0/me/calendar?$select=id also returned HTTP 401.
3. A standalone client reproduced the default-calendar 401 outside the hosted app using the same registration, account, and delegated calendar permission.
4. A second standalone client using MSAL for Python 1.39.0 reproduced the same 401. Token acquisition succeeded, and the token response included Calendars.ReadBasic.

The hosted calendar-list responses did not include a WWW-Authenticate challenge or an error code recognised by our diagnostics. Azure’s automated troubleshooter suggested checking account type, authority, and whether the flow was app-only. We verified the settings above.

Microsoft’s documentation lists delegated Calendars.ReadBasic as sufficient for both calendar endpoints on personal Microsoft accounts. Is there a known limitation or an additional requirement for this setup? What diagnostic would help explain why Graph returns 401 after successful token acquisition?

I can provide Microsoft request IDs and timestamps through a private support channel if needed.
Microsoft Security | Microsoft Graph
0 comments No comments

2 answers

Sort by: Most helpful
  1. Ross Docherty 0 Reputation points
    2026-11-26T17:39:58.5766667+00:00

    Update: I repeated the standalone MSAL test with the same personal Outlook.com account, app registration, and endpoint (GET /v1.0/me/calendar?$select=id). With delegated Calendars.ReadBasic I got HTTP 401. With delegated Calendars.Read I got HTTP 200. In both cases, the token response confirmed the requested scope. Is this a known limitation of Calendars.ReadBasic for personal Outlook.com calendars?

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-11-26T17:31:27.0133333+00:00

    Yes. The documented permissions matrix says Calendars.ReadBasic delegated permission is sufficient for GET /me/calendar and user calendar access for personal Microsoft accounts, but the provided context also includes a reproduced case where GET /me/calendar against a personal Microsoft account returned 403 in Graph Explorer even with Calendars.ReadBasic consented, and the accepted resolution was that it worked with a higher calendar permission instead. That points to a service-side limitation or inconsistency rather than a PKCE, refresh-token, or client-library issue when the same behavior reproduces across multiple clients.

    For this scenario, the most useful diagnostics are:

    1. Verify the token is valid for Microsoft Graph.
      • Confirm the access token is fresh.
      • Confirm the token audience is Microsoft Graph.
      • Confirm the token contains the delegated scope expected for the call.
    2. Verify the permission type matches the endpoint.
      • Microsoft Graph Explorer always uses a delegated token.
      • For Microsoft Graph REST endpoints, failures often occur when the app uses the wrong permission type token for the endpoint.
      • Get calendar supports delegated access for personal Microsoft accounts with Calendars.ReadBasic, Calendars.Read, or Calendars.ReadWrite.
    3. Compare behavior with a broader delegated calendar scope.
      • The accepted Microsoft Q&A case in the context reproduced the personal-account failure and reported that the call worked with a higher permission.
      • If adding Calendars.Read or Calendars.ReadWrite makes the same request succeed, that strongly indicates the issue is not token acquisition but endpoint behavior with Calendars.ReadBasic for that mailbox/account state.
    4. Test the same request in Microsoft Graph Explorer with the same account and approved permissions.
      • If Graph Explorer succeeds while the app fails, check whether the same signed-in account is used and whether the app token has the same delegated permissions.
      • If Graph Explorer also fails, that further supports a service or mailbox-specific issue rather than an app implementation problem.
    5. If GET /me/calendars returns 200 OK but omits the default calendar, consider mailbox calendar cache corruption.
      • That is a separate known issue from 401, but relevant because default-calendar problems can be mailbox-specific.

    Based on the provided material, there is no documented extra setup requirement beyond using delegated permissions, the correct authority/account type, and a valid Graph token. The strongest supported explanation is a known practical inconsistency for some personal Microsoft account calendar calls with Calendars.ReadBasic, where testing with a broader delegated calendar permission is the clearest diagnostic.

    When sharing diagnostics, include request IDs and timestamps, but remove tokens and personal data from logs.

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

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.