Getting a list of attendees programmatically, during the Teams Meeting (from Command Line Application)

AV 1 Reputation point
2022-01-30T18:40:16.777+00:00

Hello,

Posting here, per guidance provided to me from this post: https://answers.microsoft.com/en-us/msteams/forum/all/getting-a-list-of-attendees-programmatically/e8fb0d9f-ab0a-4b54-a715-d5ddf182efb7

I am trying to programmatically (through C#) get a list of attendees, WHILE the Teams Meeting is in progress. I am the owner of the meeting. I wanted to confirm that I was on the right path, as the sample code that I wrote is not returning anything:

  • Is this the right documentation for the above scenario? List participants - Microsoft Graph v1.0 | Microsoft Learn. Specifically, is the following the right call to be used?

GraphServiceClient graphClient = new GraphServiceClient( authProvider );

var participants = await graphClient.Communications.Calls["{call-id}"].Participants .Request() .GetAsync();

  • Where can I find the [call-id] of the meeting, which is a parameter that needs to be passed in?
  • Will the above code snippet work only when the meeting is in session or can I test after meeting as well?
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,122 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,867 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Meghana-MSFT 3,771 Reputation points Microsoft Vendor
    2022-01-31T14:31:52.23+00:00

    Please go through the AttendanceReport documentation to get the attendance details of a Teams Meeting.

    Thanks,
    Meghana


    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    0 comments No comments

  2. AV 1 Reputation point
    2022-01-31T17:40:46.727+00:00

    Thanks, @Meghana-MSFT --- It looks like the resources that you pointed me to require that the meeting must be over, before I can collect the attendance statistics, right? I need to do this programmatically, while the meeting is in progress (to get the list of attendees at that time)

    From your link:

    Get a list of meetingAttendanceReport objects for an onlineMeeting. Each time an online meeting ends, an attendance report is generated for that session.


  3. AV 1 Reputation point
    2022-02-02T19:11:53.573+00:00

    @Meghana-MSFT : Is there an alternate way to get the live participant list, while the meeting is in session?