TeamsPowerShell

M365 – Teams Guest Access Audit (PowerShell)

Review guest access in Microsoft Teams.

PowerShell
Connect-MicrosoftTeams
Get-Team | ForEach-Object {
  $t = $_
  Get-TeamUser -GroupId $t.GroupId -Role Guest | 
    Select @{n='Team';e={$t.DisplayName}}, User, Role
} | Export-Csv teams_guests.csv -NoTypeInformation
  

From Joseph Nakhle's automation workbench.

More Teams scripts