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://video2.skills-academy.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 Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,005 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 41,941 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.


0 additional answers

Sort by: Most helpful

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.