Hello @EXTERNAL Wu Shuang (DXC, BD/SWD-FSB2), I understand that you want to fetch attendance data for an event.
When you create meeting using /me/events
this uses Outlook Calendar API, not the Teams Online Meeting API directly. Hence you cannot get attendanceReports
from meetings created via /me/events
-
/me/events
is part of the Outlook Calendar API, used for scheduling general events or appointments and not necessarily Microsoft Teams meetings.
Hence you are facing the issue, and if you want to get attendance report, instead of using /me/events
, use POST /me/onlineMeetings
. Refer this Microsoft Document: Create onlineMeeting - Microsoft Graph v1.0 | Microsoft
And after creating onlineMeetings
, you can get total number of participants in the meeting, like below:
https://graph.microsoft.com/v1.0/me/onlineMeetings/MeetingID/attendanceReports
And list the users and their details who joined the meeting:
https://graph.microsoft.com/v1.0/me/onlineMeetings/MeetingID/attendanceReports/AttendanceReportID/attendanceRecords
Hope this helps!
If this answer was helpful, please click "Accept the answer" and mark Yes
, as this can help other community members.
If you have any other questions or are still facing issues, feel free to post in the comments and I’ll be happy to assist further.