נוב7
Written by:
ronen ariely
07/11/2020 16:56 
There is a great support for Teams in PowerShell, which allow you to get all a list of all the users in a specific team. Here is the procedure in steps
Step 1: Install "MicrosoftTeams" Module:
> Install-Module -Name MicrosoftTeams -RequiredVersion 1.0.2
Step 2:Confirm that the Module installed:
> Get-Module -ListAvailable -Name MicrosoftTeams
Step 3:Import the Modul:
> Import-Module -Name MicrosoftTeams
Step 4:Connect Teams - this will provide you with link and code to authenticate your user:
Step 5:Get the information about all the teams a user participate in:
> Get-Team -User <
here
you use the user email>
Step 6:Use step 5 in order to find the GroupId of the Team which you want to get the list of the users. You need this ID for the final command of our today's task:
> Get-TeamUser -GroupId <
use
here the GroupId from step 5>
💥And that is the magic for today 🤩