Access Graph API without the user (personal account)

Alexander R 20 Reputation points
2024-07-03T08:41:13.1566667+00:00

I need to access the user's Outlook calendar from the background service. The user may come from multiple directories or have a personal account.

There is a Microsoft guide on that topic https://learn.microsoft.com/en-us/graph/auth-v2-service?tabs=http

Unfortunately, it doesn't seem to be working with personal accounts.

When I request permission with https://login.microsoftonline.com/common/adminconsent?client_id=my_client_id&state=12345&redirect_uri=http://localhost/

I get the following response.

AADSTS500200: User account '**@outlook.com' is a personal Microsoft account. Personal Microsoft accounts are not supported for this application unless explicitly invited to an organization. Try signing out and signing back in with an organizational account.*

So, I'm wondering how to access a personal accounts' Graph API from the background service.

Microsoft Security | Microsoft Graph
0 comments No comments

Answer accepted by question author
CarlZhao-MSFT 46,456 Reputation points
2024-07-03T09:10:10.1333333+00:00

Hi @Alexander R

Unable to access personal accounts from the backend service unless the personal account is added to the organization as a guest.

Or log in the personal account to your multi-tenant application.


Hope this helps.

If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

Was this answer helpful?


0 additional answers

Sort by: Most 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.