Hi Ryan Teo,
Thanks for reaching out!
I can understand that you are trying to get the meetingID
to fetch the attendence reports for an onlinemeeting using endpoint- /me/onlineMeetings/{meetingId}/attendanceReports
To obtain the ID of an online meeting:
Using the joinWebUrl
: Call the following Graph API endpoint:
GET /me/onlineMeetings?$filter=JoinWebUrl%20eq%20'{joinWebUrl}'
Using the joinMeetingId
:
GET /me/onlineMeetings?$filter=joinMeetingIdSettings/joinMeetingId%20eq%20'{joinMeetingId}'
Note: To use application permission for the above-mentioned APIs, tenant administrators must create an application access policy and grant it to a user to authorize the app configured in the policy to fetch online meetings and/or online meeting artifacts on behalf of that user (with user ID specified in the request path).
You can also subscribe your app to receive change notifications for scheduled meeting events-Refer here
Currently, to get an attendance report by ID with delegated (/me) and app (/users/{userId}) permission.
GET /me/onlineMeetings/{meetingId}/attendanceReports/{reportId}
GET /users/{userId}/onlineMeetings/{meetingId}/attendanceReports/{reportId}
Document reference: https://learn.microsoft.com/en-us/graph/api/meetingattendancereport-get?view=graph-rest-1.0&tabs=http
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".