在 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

首先,請執行匯出管理員及其導向腳本 (,假設您已經執行了 AzureAd 和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). 匯出管理員及其指引腳本會建立一個以 tab 分隔的檔案 ( # 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. 如果有任何主管或 direct 沒有為團隊啟用任何管理員,則腳本會跳過它們,而且不會建立小組。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