Forum Discussion

abv75's avatar
abv75
Copper Contributor
Jan 30, 2022

Get list of attendees on a Teams Meeting programmatically, while meeting is in progress

Hello,

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 Docs. 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?

Resources