Outlook calendar API access issue

Nirav Lathiya 1 Reputation point
2022-10-13T04:52:12.277+00:00

Though I have Azure free trial plan, I cannot be able to access outlook calendar graph APIs. every time it's throwing error "Resource could not be discovered" whenever I try to create calendar event
if anyone have idea about this, it would be very appreciable
Thanks

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bhanu Kiran 3,616 Reputation points
    2022-10-13T05:59:21.1+00:00

    Hi @Nirav Lathiya ,

    I am not able to repro your issue.
    Did you license the user for Exchange Online/provision a mailbox? This endpoint corresponds to calendar events, and in order to fetch those you need to have a mailbox.?

    Also looking at the error you are getting, it seems the issue is not with the Graph API or roles, but with the way your mailbox is configured.
    Please try a couple of things -

    1. Make sure your mailbox is not inactive, soft-deleted, or is hosted on-premise.
    2. If you are having a hybrid setup of Microsoft 365 with an on-premise exchange server, please look at this documentation once to rule out you are not missing anything.
    3. Check this thread to see if this is not your scenario.
    4. Lastly, please check if your tenant has not configured some rules around the mailbox.

    Hope this helps.
    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


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.