The Get-AssociatedTeam cmdlet reports the teams a user is a member of, including shared channels in their home and external tenants. It’s useful for reports.
— Read on office365itpros.com/2022/08/11/get-associatedteam-cmdlet/amp/