Forum Discussion
UnknownError (503) when calling Graph API's /calendar/events for some users
- kgeystJan 12, 2022Copper Contributor
I decoded the generated JWT access token and it has the following roles:
"roles": [ "OnlineMeetings.ReadWrite.All", "CallRecords.Read.All", "User.Read.All", "Calendars.ReadWrite" ],The same token works fine for another user.
- Sayali-MSFTJan 12, 2022
Microsoft
kgeyst -As per document, you need to add the both permission.
Calendars.Read, Calendars.ReadWrite.ā
Could you please add it and check it once?
Let us know if you have any query.
Ref. Doc:-List events - Microsoft Graph v1.0 | Microsoft Docs
- kgeystJan 12, 2022Copper Contributor
As per https://docs.microsoft.com/en-us/graph/permissions-reference, "Calendars.ReadWrite" gives full access to calendars (including reading), while "Calendars.Read" is a subset of it if you only wish to read events.
Interestingly, while reading that page, I found this:
"Important Administrators can configure application access policy to limit app access to specific mailboxes and not to all the mailboxes in the organization, even if the app has been granted the application permissions of Calendars.Read or Calendars.ReadWrite"