Setup: O365 tenant with Teams

Problem: You want to have a list with all private channel’s associated SharePoint sites and their owners.

Solution: Run the following PowerShell commands

Connect-SPOService https://tenant-admin.sharepoint.com
Get-SPOSite -Template "TEAMCHANNEL#1" # latest template channels created after June 2021
Get-SPOSite -Template "TEAMCHANNEL#0" # initial template channels created before June 2021
# to filter out by name
Get-SPOSite -Template "TEAMCHANNEL#1" | ?{$_.url -match "name"}

Leave a Reply

Your email address will not be published. Required fields are marked *