Could you please refer some starting code examples for building an OAuth2.0 client for fetching Outlook calendar data for personal MS account holders?

parth 31 Reputation points
2022-09-23T16:41:00.22+00:00

Most of the examples depicting the usage of MS Graph API-based fetch of user data are geared toward the single tenant, and then there is a tutorial for multi-tenant, but I need to build an OAuth2.0 client for personal MS account holders (Outlook accounts).

I tried making tenant-id: common in the code and selecting all AD + personal accounts while registering the app with the Azure portal, but the same isn't working.

P.S. I am using MS-Graph Java SDK

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,685 questions
0 comments No comments
{count} votes

Your answer

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