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.
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.
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.
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.