You need to follow the steps as provided in the documentation to access multiple user calendars. Also i would suggest you to test the same using POSTMAN as well.
Access to calendar - 401 with message: Unauthorized or 403 with message: Forbidden
BB
1
Reputation point
Hi,
I have created a application on Azure AD.
With a sample daemon-application I've got the users list.
I'm trying to get access to users calendar but getting 401 with message: Unauthorized or 403 with message: Forbidden
API URL:
- https://graph.microsoft.com/v1.0/me/calendars
- https://graph.microsoft.com/v1.0/me/events?$select=subject,body,bodyPreview,organizer,attendees,start,end,location
I've provided Application level Calendars.ReadWrite permission and also granted admin consent.
Kindly advice.
2 answers
Sort by: Most helpful
-
Deva-MSFT 2,266 Reputation points Microsoft Employee
2021-02-09T06:42:14.74+00:00 -
BB 1 Reputation point
2021-02-09T17:49:35.643+00:00 @Deva-MSFT The steps in the documentation is followed. Sure, will check in postman too.
Can it be that users calendar being not available/enabled or something of that sort? Is that even possible if he has a microsoft account?