question

HarryHuangCrystalGroup-8815 avatar image
0 Votes"
HarryHuangCrystalGroup-8815 asked

Graph API Calendar return 404 not found

![108115-image.png][1]




This is Exchange on-premises server mailbox account, and it does not have an Exchange Online mailbox. I suppose the API can work in hybrid deployments?

*If I use another O365 account to login and try to get this mailbox schedule via "/calendar/getSchedule", it works.

office-exchange-hybrid-itpromicrosoft-graph-calendar
image.png (132.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

michev avatar image
0 Votes"
michev answered HarryHuangCrystalGroup-8815 commented

In order for the Graph to be able to access on-premises data, you need to configure integration as detailed here: https://docs.microsoft.com/en-us/graph/hybrid-rest-support#requirements-for-the-rest-api-to-work-in-hybrid-deployments

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks @michev , I have talked to our IT guy and seems all the requirements already met.

In fact, I can use another Exchange Online account to look up schedule of this on-premises mailbox

(I signed in as [hkroom707] and query about [hkroom701], [hkroom701] is the on-premises mailbox.
108314-image.png


0 Votes 0 ·
image.png (94.4 KiB)
michev avatar image michev HarryHuangCrystalGroup-8815 ·

Try using the actual userid instead of the /me endpoint?

0 Votes 0 ·

I tried, the same 404 return.

108551-image.png


0 Votes 0 ·
image.png (128.6 KiB)