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

%3CLINGO-SUB%20id%3D%22lingo-sub-3089407%22%20slang%3D%22en-US%22%3EGet%20list%20of%20attendees%20on%20a%20Teams%20Meeting%20programmatically%2C%20while%20meeting%20is%20in%20progress%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3089407%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3CBR%20%2F%3E%3CBR%20%2F%3EI%20am%20trying%20to%20programmatically%20(through%20C%23)%20get%20a%20list%20of%20attendees%2C%20WHILE%20the%20Teams%20Meeting%20is%20in%20progress.%20I%20am%20the%20owner%20of%20the%20meeting.%20I%20wanted%20to%20confirm%20that%20I%20was%20on%20the%20right%20path%2C%20as%20the%20sample%20code%20that%20I%20wrote%20is%20not%20returning%20anything%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-%20Is%20this%20the%20right%20documentation%20for%20the%20above%20scenario%3F%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fcall-list-participants%3Fview%3Dgraph-rest-1.0%26amp%3Btabs%3Dhttp%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EList%20participants%20-%20Microsoft%20Graph%20v1.0%20%7C%20Microsoft%20Docs%3C%2FA%3E.%20Specifically%2C%20is%20the%20following%20the%20right%20call%20to%20be%20used%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGraphServiceClient%20graphClient%20%3D%20new%20GraphServiceClient(%20authProvider%20)%3B%3CBR%20%2F%3E%3CBR%20%2F%3Evar%20participants%20%3D%20await%20graphClient.Communications.Calls%5B%22%7Bcall-id%7D%22%5D.Participants%20.Request()%20.GetAsync()%3B%3C%2FP%3E%3CP%3EMicrosoft%20Teams%2C%20Developer%2C%20Meetings%3C%2FP%3E%3CP%3E-%20Where%20can%20I%20find%20the%20%5Bcall-id%5D%20of%20the%20meeting%2C%20which%20is%20a%20parameter%20that%20needs%20to%20be%20passed%20in%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3E-%20Will%20the%20above%20code%20snippet%20work%20only%20when%20the%20meeting%20is%20in%20session%20or%20can%20I%20test%20after%20meeting%20as%20well%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3089407%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMeetings%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3089497%22%20slang%3D%22en-US%22%3ERe%3A%20Get%20list%20of%20attendees%20on%20a%20Teams%20Meeting%20programmatically%2C%20while%20meeting%20is%20in%20progress%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3089497%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1291569%22%20target%3D%22_blank%22%3E%40abv75%3C%2FA%3E%26nbsp%3B%20%26nbsp%3BI%20see%20that%20you%20may%20have%20posted%20this%20question%20on%20the%20answers.microsoft.com%20site%20-%20does%20the%20response%20work%3F%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fanswers.microsoft.com%2Fen-us%2Fmsteams%2Fforum%2Fall%2Fgetting-a-list-of-attendees-programmatically%2Fe8fb0d9f-ab0a-4b54-a715-d5ddf182efb7%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EGetting%20a%20list%20of%20attendees%20programmatically%2C%20during%20the%20Teams%20Meeting%20-%20Microsoft%20Community%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20can%20tell%20you%20that%20when%20I'm%20not%20the%20organizer%20of%20the%20meeting%20and%20I%20need%20an%20immediate%20list%20of%20members%2C%20I%20screen%20capture%20the%20names%20in%20the%20attendee%20box.%26nbsp%3B%20Not%20elegant%2C%20but%20effective.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3089510%22%20slang%3D%22en-US%22%3ERe%3A%20Get%20list%20of%20attendees%20on%20a%20Teams%20Meeting%20programmatically%2C%20while%20meeting%20is%20in%20progress%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3089510%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20for%20your%20response.%20Yes%2C%20it%20is%20the%20same%20question%20and%20I%20posted%20it%20here%20because%20I%20was%20also%20instructed%20to%20post%20this%20question%20on%20the%20Teams%20Developer%20channel.%20At%20this%20time%2C%20I%20am%20not%20sure%20if%20my%20approach%20is%20correct%20and%20hence%20wanted%20some%20validation%20from%20the%20Teams%20Developer%20channel%2C%20but%20I%20can%20also%20try%20cross%20posting%20on%20the%20Microsoft%20Graph%20channel.%3CBR%20%2F%3E%3CBR%20%2F%3EFor%20what%20I%20am%20trying%20to%20achieve%2C%20I%20do%20need%20to%20get%20the%20information%20programmatically%2C%20not%20manually.%3C%2FLINGO-BODY%3E
This thread has been locked for new comments by a moderator, if you have a new similar issue then please start a new thread.
New Contributor

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?

4 Replies

Hello @abv75   I see that you may have posted this question on the answers.microsoft.com site - does the response work? Getting a list of attendees programmatically, during the Teams Meeting - Microsoft Community

 

I can tell you that when I'm not the organizer of the meeting and I need an immediate list of members, I screen capture the names in the attendee box.  Not elegant, but effective.

Hi,

Thank you for your response. Yes, it is the same question and I posted it here because I was also instructed to post this question on the Teams Developer channel. At this time, I am not sure if my approach is correct and hence wanted some validation from the Teams Developer channel, but I can also try cross posting on the Microsoft Graph channel.

For what I am trying to achieve, I do need to get the information programmatically, not manually.
@abv75 - We are looking into this I will get back to you soon.