Create people manager teams in Microsoft Teams

When you roll out Microsoft Teams, rather than launching with a "blank slate" (no teams or channels), we strongly recommend that you set up a base framework of teams and channels. This helps to prevent "team sprawl," where users create numerous teams when they should be creating channels in existing teams. To help you get started with a well-designed teams and channels structure, we've created a PowerShell script that creates a team for each of your first and second line people managers, with each manager's direct reports as team members. This is a "point-in-time" script (it doesn't update your teams or channels automatically when people are added or removed from an organization). But it's a valuable tool you can use to impose some order on your Teams structure from the start. This script reads your Azure AD, gets a list of managers and their direct reports. It uses this list to create one team per people manager.

How to use the PowerShell script

Start by running the Export managers and their directs script (which assumes you've already run the Connect-AzureAd and Connect-MicrosoftTeams PowerShell modules). The Export managers and their directs script creates a tab-delimited file (ExportedManagerDirects.txt) that lists all managers with their direct reports.

Then, run the Create new people manager teams script. This script reads in the ExportedManagerDirects.txt file and creates a team for each manager, with that manager's direct reports as members. If any manager or direct isn't enabled for Teams, the script skips them and doesn't create a team. (Review the report, then rerun the script after you've turned on Teams for anybody who needs it. The script won't create a second team for any manager it's already created a team for.)

For each team, the script creates a General and "Just for fun" channel.

Best practices

Best practices for organizing teams

Create an org-wide team in Teams