Microsoft Graph Teams Attendance Report for past occurrence

KThomas 21 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
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,324 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,976 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,944 questions
{count} votes

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

    Hi @KThomas ,

    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