I want to list all the meeting in the meeting room of outlook calendar through a get request in a node application. How is it possible? I tried Microsoft graph API but I cannot get any solutions.
I have registered an app in Azure AD and generated client secret ID also and set permissions as below: Permission for app in azure(image)
I followed the tutorial below: https://learn.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-nodejs-console
Following this tutorial, I dynamically generated access tokens and I am able to list calendars of users, post events. But I cannot get event details of any calendars although permissions are of both Calendar read and write.
I am using https://graph.microsoft.com/v1.0/users/{userId}/events to get events but I cannot access it. It gives 403 error i.e permission error but as mentioned above I think I have enough permissions to read write. I can fetch calendars using /v1.0/users/{userId}/calendars and post events using /v1.0/users/{userId}/calendars/{calendarId}/events by passing event payload using fetch.createEvent( postAPI, payload, accessToken)
How can I get events from the calendars?