"Activate" function with new-mgteam
Philipp Flury
0
Reputation points
We create teams for our school using Powershell. We used to use the Powershell command new-team for this. Now we use the Graph module with new-mgteam.
Since we created the teams with new-mgteam, the teams no longer need to be activated by an owner, but are activated immediately. See screenshot.
Old Command:
New-Team -DisplayName $Team -Description $Beschreibung -template EDU_Class -mailnickname $Mail -Owner $Admin
New Command:
$params = @{
"template@odata.bind" = "https://graph.microsoft.com/v1.0/teamsTemplates('educationClass')"
displayName = $Team
description = $Beschreibung
mailnickname = $Mail
members = @(
@{
"@odata.type" = "#microsoft.graph.aadUserConversationMember"
roles = @(
"owner"
)
"user@odata.bind" = "https://graph.microsoft.com/v1.0/users('$adminID')"
}
)
}
New-MgTeam -BodyParameter $params
How can we reactivate this function? Because we want our teams to be prepared before Members can use it.
Sign in to answer