I have a powershell script that creates a new team using the New-Team module. This should output the newly created teams GroupID, i don't seem to get this but the Team is created just fine.
The code i'm using is:
$team = New-Team -MailNickname $TeamName -displayname $TeamName -Visibility Private
Write-Host "Team Created: $TeamName" Write-Host "Team GUID: $team.GroupID"
The response i get from $team.GroupID is the following and not the value.
Team GUID: Microsoft.Teams.PowerShell.TeamsCmdlets.Model.TeamSettings.GroupID
$Team.GroupID |Get-Membershow you? - Mathias R. Jessen