在 Microsoft 团队中创建人员经理团队Create people manager teams in Microsoft Teams

当你推出 Microsoft 团队,而不是使用 "空白平板" 启动 (不) 团队或频道时,我们强烈建议你设置团队和频道的基础框架。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. 为了帮助您开始使用精心设计的团队和频道结构,我们创建了一个 PowerShell 脚本,为第一和第二行人员经理创建团队,每个经理的直接下属都是团队成员。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. 此脚本读取你的 Azure AD,获取经理及其直接下属的列表。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.

如何使用 PowerShell 脚本How to use the PowerShell script

首先运行 "导出管理器" 及其 "指导" 脚本 (该脚本假设你已) 运行AzureAdconnect MicrosoftTeams PowerShell 模块。Start by running the Export managers and their directs script (which assumes you've already run the Connect-AzureAd and Connect-MicrosoftTeams PowerShell modules). 导出管理器及其指导脚本将创建一个制表符分隔的文件 ( # A0) ,其中列出了所有经理及其直接下属。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. 此脚本将在 ExportedManagerDirects.txt 文件中读取并为每个管理器创建团队,并将该经理的直接下属作为成员。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

在 Teams 中创建组织范围内的团队Create an org-wide team in Teams