I have the script below that I thought would work to convert the Office 365 group created in School Data Sync into a education class with the channels as specified.
The script runs in powershell and doesnt error out however nothing actually happens to my groups.
Does anyone have any suggestions or would be able to convert my code into a working example??
$templateBody = {
template@odata.bind = "https://graph.microsoft.com/beta/teamsTemplates('educationClass')";
group@odata.bind = "https://graph.microsoft.com/v1.0/groups('groupID')";
channels[
{
displayName = "Channel 1";
isFavoriteByDefault = true
},
{
displayName = "Channel 2";
membershipType = "private"
},
{
displayName = "Channel 3";
isFavoriteByDefault = true
},
{
displayName = "Channel 4";
isFavoriteByDefault = true
}
]
memberSettings {
allowCreateUpdateChannels = false;
allowDeleteChannels = false;
allowAddRemoveApps = false;
allowCreateUpdateRemoveTabs = false;
allowCreateUpdateRemoveConnectors = false
}
}
$jsonBody = ConvertTo-Json $templateBody