Graph API Calendar does not work on onPrem outlook?

Karen Adams 76 Reputation points
2021-01-08T20:29:16.023+00:00

I am using graph calendar api GET https://graph.microsoft.com/v1.0/me/events

In order to get users meetings/scheduled events however the api is returning "404 Resource Not Found."

The user in question a an AAD user synced with the cloud, however I am told that the outlook mailbox itself is on-prem and not synced to the cloud.

Would someone be able to explain to me how I can get the calendar graph api to work for this user? (Without bringing their outlook mailbox on prem)

I also notice Graph API calendar api should work on on-prem services. Is this a fair assumption to make?

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

2 answers

Sort by: Most helpful
  1. Deva-MSFT 2,266 Reputation points Microsoft Employee
    2021-01-09T06:13:12.293+00:00

    You should use REST APIs to access mailboxes in Exchange hybrid deployments (preview), so that you can access the resources from Exchange online & Exchange Onprem. If your app uses v1.0 of the Mail, Calendar, or Contacts API, you will now also find a seamless authentication and application experience in hybrid deployments, regardless of whether the mailbox is on-premises or in the cloud, provided that the deployment meets specific requirements.

    0 comments No comments

  2. Karen Adams 76 Reputation points
    2021-01-12T23:06:37.483+00:00

    @Deva-MSFT Thanks for linking the article

    I have a specific concern I was wondering if you could help me out with.

    I have a customer that meets all those requirements, hybrid setup in exchange 2016 with exchange-ad synced with azure-ad etc. etc.
    Only issue is outlook mailbox is NOT sync'd to azure. Does this disqualify them from calendar graph api usage?

    0 comments No comments

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.