Microsoft Graph Teams Attendance Report for past occurrence

Keith Thomas 41 Reputation points
2022-02-08T05:04:40.65+00:00

I have a basic PowerShell script to pull a report of all online meetings a user has been invited to. From here I can get the joinurl and use the get-mguseronlinemeeting which will return the online meeting id. Once I have the meeting ID I can only seem to find the attendance report of the latest occurrence. Because the joinurl is the same between occurances, I am stuck trying to figure out out to pull previous occurance attendance reports. How can I get meeting IDs from previous occurances?

Microsoft Teams | Development
Microsoft Security | Microsoft Graph
Microsoft Teams | Microsoft Teams for business | Other
{count} votes

Accepted answer
  1. ShivaniRai-MSFT-7217 2,746 Reputation points
    2022-02-08T12:35:32.287+00:00

    Hi @Keith Thomas ,

    There are two ways to get meeting Id of a online meeting if you have joinWebUrl or videoTeleconferenceId as per this documentation:

     -GET /users/{userId}/onlineMeetings?$filter=JoinWebUrl%20eq%20'{joinWebUrl}'  
          
     -GET /communications/onlineMeetings/?$filter=VideoTeleconferenceId%20eq%20'{videoTeleconferenceId}'  
    

    If you know these properties you can fetch the meeting Id (Please refer below example reference)

    Example reference 1: Used joinWebUrl property to fetch meeting Id of an Online meeting in Graph Explorer (refer below screenshot)
    172090-image.png

    As per my testing I am able to fetch all the attendance reports for an online meeting using the meeting Id from above response.

    Example reference 2: used this Graph API Endpoint GET /users/{userId}/onlineMeetings/{meetingId}/attendanceReports to fetch attendance reports for different occurences for the same meeting (refer below screenshot)
    172199-image.png

    Please cross verify your joinWebUrl as meeting Id for all the occurrences will be same.

    Reference Docs:
    https://learn.microsoft.com/en-us/graph/api/onlinemeeting-get?view=graph-rest-1.0&tabs=http#http-request
    https://learn.microsoft.com/en-us/graph/api/meetingattendancereport-list?view=graph-rest-1.0&tabs=http

    Hope this helps.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment".

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.