Graph API: unable to create subscription for events.

Paul L 20 Reputation points
2023-02-01T23:26:46.8733333+00:00

I am trying to create subscription with endpoint

enter image description here

The postman returned 403 Forbidden, I checked the application, I have the calendars.read, calendars.readwrite permission. For the "resource", I tried multiple, including "me/events", "/me/events", "users/{id}/events" etc...

enter image description here

I also checked the JWT token, the scp shows it has calendar permissions too. enter image description here

Anyone know why API returns 403 forbidden? Thanks for any help in advance.

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

Accepted answer
  1. Anonymous
    2023-02-02T07:55:21.9+00:00

    Hi @Paul L ,

    Thanks for reaching out!

    As per the documentation, Microsoft Graph subscriptions will not support write access permissions when only read access permissions are needed.

    • To create subscriptions for me/events only "Calendars.Read" is needed.
    • Do not use the Outlook sharing permissions (Contacts.Read.Shared, Calendars.Read.Shared, Mail.Read.Shared, and their read/write counterparts), as they do not support subscribing to change notifications on items in shared or delegated folders.

    Reference document: Permissions

    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 comments No comments

0 additional answers

Sort by: Most helpful