en-UShe-IL
You are here:   Blog
Register   |  Login

Blog Archive:

Maximize
* Can be used in order to search for older blogs Entries

Search in blogs


Blog Categories:

Maximize
* Can be used in order to search for blogs Entries by Categories

Blog Tags:

Maximize
* Can be used in order to search for blogs by keywords

TNWikiSummit


Awared MVP

 


Microsoft® Community Contributor 


Microsoft® Community Contributor


 Read first, before you you use the blog! Maximize

Recent Entries

Minimize
נוב7

Written by: ronen ariely
07/11/2020 16:56 RssIcon

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:

> Connect-MicrosoftTeams

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 🤩