Get a List of Members from a Microsoft Teams site

Here’s a great tip from one my co-workers, Steve K. and Mike L, from Microsoft.

I needed a list of email addresses for all members of a Microsoft Teams site.

Did not want to copy and paste over 100 members from the Teams GUI. But, could not find any built-in functionality that would simply render the list.

So, PowerShell to the rescue!

The above figure shows hot to install the Microsoft Teams PowerShell module and connect to PowerShell,

Next, query Microsoft Teams using the Get-Team -user <your email> to return all Teams in which you’re involved. Find the name of the team in the DisplayName column and simply copy its corresponding GroupId.

Finally, run Get-TeamUser passing the GroupId as a parameter. Note how we append a select -property to return the Name and User’s email.

Leave a Reply

Your email address will not be published. Required fields are marked *

Solve : *
16 + 9 =


6 + 3 =