CmdID / PowerShell / Cmdlets / Get
Get-AssociatedTeam
This cmdlet supports retrieving all teams associated with a user, including teams which host shared channels. Microsoft Teams PowerShell reference
From the Microsoft Teams PowerShell reference 1 parameter Its page in the reference
Parameters
-UserUser's UPN (user principal name, for example johndoe@example.com) or user ID (for example 0e4249a7-6cfd-8c93-a510-91cda44c8c73).