Hello Info Omniwish,
Thank you for reaching out to Microsoft Support!
It sounds like you're having trouble retrieving the attendance report for your online meeting using the Microsoft Graph API. Here are a few things to check:
- Permissions: Ensure that your application has the necessary permissions. For retrieving attendance reports, you need the
OnlineMeetingArtifact.Read.All
permission. - Correct Endpoint: Verify that you are using the correct endpoint. The endpoint should look like this:
GET /users/{userId}/onlineMeetings/{meetingId}/attendanceReports
- Authorization: Make sure you include a valid Bearer token in your request header:
Authorization: Bearer {token}
- Meeting Organizer: Only the meeting organizer or co-organizer can access the attendance report.
- Application Permissions: To use application permission for this API, tenant administrators must create an application access policy and grant it to a user. This authorizes the app configured in the policy to fetch online meetings and/or online meeting artifacts on behalf of that user (with the user ID specified in the request path). Please refer documentation.
I have tested the API from my end and its working as expected. Please refer below screenshot.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.