Add Microsoft Teams Members using PowerShell

0
14
views

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
A screenshot of a cell phone
Description automatically generated

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.

A screenshot of a cell phone
Description automatically generated

That’s just a quick way of how you can add new Team members using PowerShell.

#HappyTeams

Sharing is caring!

Previous articleCreate new Microsoft Team using PowerShell
Next articleAdd a Channel to Microsoft Team using PowerShell
About Me ? I Guess i would start by saying i am a family guys and full time SysAdmin and Tech Junky. This Blog is my first attempt to share information about daily issues i come across as a SysAdmin as well as some new deployments i am part of. Topics that i will cover will mostly be about Office 365,Windows,Exchange as well as Active Directory. I hope some of my Blog posts helps someone #LiveLongAndBeLazy #Exchange #Office 365 #ActiveDirectory #Hyper-V
SHARE

LEAVE A REPLY

Please enter your comment!
Please enter your name here