Make a member owner in all groups

Occasional Visitor

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

1 Reply

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 

Connect to Microsoft teams 

Add user to teams 


# Script

foreach($team in $teams)
Add-TeamUser -GroupId $team.Groupid -User <String> -Role Owner