Sep 30 2020 12:48 PM
i need your help
my boss just asked me to add her to 270 groups as owner in microsoft teams.
it will take me forever to do so. is there any easy way to do it using powershell or any idea
thank you please i need help asap
Oct 05 2020 12:17 AM
Hi @elie_t ,
Below PowerShell script will fetch the Microsoft Teams in your organization and adds user as owner to Teams
Install Microsoft Teams module
# Script
Connect-MicrosoftTeams
$teams=Get-Team
foreach($team in $teams)
{
Add-TeamUser -GroupId $team.Groupid -User <String> -Role Owner
}