Last updated on Sep 29, 2021
Add Microsoft Teams Members using PowerShell
In this post, we will look at how to add Teams Members using PowerShell. To find out how to create a Team using PowerShell view the following post: http://www.thatlazyadmin.com/create-new-microsoft-team-using-powershell/
To get started, we need to first get the Teams GroupId as this will be used to add the new Team members.
1 |
Get-Team |Select GroupId, DisplayName |
Note the GroupId name of the Team where you want to add the members.
To add the Team members run the following.
1 |
Add-TeamUser -User User@urbannerd-consulting.com -GroupId 95d038af-a7af-48f7-b20c-664d9b27c3e2 -Role Owner |
To get a list of current users in a Team run the following.
1 |
Get-Team -GroupId 95d038af-a7af-48f7-b20c-664d9b27c3e2 |Get-TeamUser |
Replace the GroupId with that of your Team.
That’s just a quick way of how you can add new Team members using PowerShell.
#HappyTeams
Search and apply for the latest Microsoft consultant jobs here.
Be First to Comment