Locating private channel users

To locate all of the private channel users whose mailboxes you would need to include in a content search or eDiscovery, follow these steps:

  1. Connect to Microsoft Teams using the Connect-MicrosoftTeams cmdlet.
  2. Locate the Team group object ID using $Team = Get-Team -DisplayName "Team Name".
  3. Locate the Team's private channels using $Channels = Get-TeamChannel -GroupId $Team.GroupId | ? {$_.MembershipType -eq "Private"} .
  4. Locate the Team's private channel users with $Users = ($Channels | % { Get-TeamChannelUser -GroupId $Team.GroupId -DisplayName $_.DisplayName}).User | Sort -Unique, as shown here:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset