Sample for connecting to Teams with Mg Module Get started with the Microsoft Graph PowerShell SDK https://learn.microsoft.com/en-us/powershell/microsoftgraph/get-started?view=graph-powershell-1.0 Get-MgTeamMember https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.teams/get-mgteammember?view=graph-powershell-1.0#examples