Microsoft Graph {user-id}/calendar/events returns 403 even though I've been given read access

Ryan 20 Reputation points
2024-05-08T21:51:27.9233333+00:00

Making a call to {user-id}/calendar/events is returning a 403, even though the specified user has given read access to their calendar.

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

Accepted answer
  1. CarlZhao-MSFT 37,786 Reputation points
    2024-05-09T07:46:27.8166667+00:00

    Hi @Ryan

    It depends on your context, if your context is a delegated context, then the target user must share the calendar with the logged in user or grant delegated access. See details and an example.

    If your context is an application-only context, then you must grant the Calendars.Read application permission to the calling app and request an access token using the daemon-based client credentials flow.

    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