Forum Discussion
Groups are created by SDS but not teams
- Apr 07, 2020
That Is supposed to be the correct behavior if your SDS profile was created before the deadline specified in the article. Ours was created a day before so over half of our Teams did get created. The other half had errors that required us to do a reset of the sync. No Teams have been created by SDS after that.
I ended up using PowerShell to create the missing teams.
For those curious:
You will need the Azure AD and Microsoft Teams PowerShell modules installed.
Connect to both Azure AD and Microsoft Teams using your O365 admin credentials.
SDS does not add a description to the group when created, so we put all groups with empty descriptions into a variable. A description is added to the group when a Team is create for it.
We further reduced the list of groups in the variable to only those we need. All of our section groups have the semester and period in the name, so we use that as our filter. Anyone else's names may vary and will need to adjust for it.
We then create a team for each group.
Connect-AzureAD Connect-MicrosoftTeams $tgroups=Get-AzureADGroup -All $true | Where-Object {$_.Description -eq $null} $tgroups = $tgroups | Where-Object { $_.DisplayName -like '*-S2-P*' } $tgroups | ForEach-Object {new-team -group $_.objectid}
Thanks for the tip. It helped me find the reason why teams are no longer created automatically.
Microsoft made changes to the provisioning behavior.
Teams are no longer created when data is synced using SDS.
Teachers must create a new team and then use the group to "assist" them with adding the students.
https://docs.microsoft.com/en-us/SchoolDataSync/changes-to-class-teams-provisioning
I Truly hope this create class from group feature rolls out soon.
Do you know why Microsoft change this option of create Teams ?
I don't find the option for create a Team For a group in my organization:
i must settings something ?
I think i'm gone do a Scripting powershell based on my CSV Section, i could sharing you if you want.
thanks for your answer and sorry for my bad English 😉
- Mgutierrez215Apr 07, 2020Copper Contributor
We can create a team from a group by selecting "other" as the type in the app, but I don't think it creates the Team in the same way as if you wanted to create a class. That's where the "https://support.office.com/en-us/article/create-a-class-team-in-microsoft-teams-preview-fae422eb-58b7-4431-9ff2-a4b9b6ae7c5b?ui=en-US&rs=en-US&ad=US" feature that @NickBeagin mentioned comes in. That feature is still in preview at the time of this post though.
Thank you for the PowerShell offer. Luckily I was able to resolve my issue. I posted the solution to my issue in an earlier reply.
- NickBeaginApr 07, 2020Copper Contributor
From my messing around as soon as a Teacher logs into Teams then the group created by SDS gets Teamed.
I logged in as a Teacher and was presented with my class team - I didn't do anything but the team was created.
so it seems all that has to happen for our SDS groups is for the teacher defined in the synch to login- Mgutierrez215Apr 07, 2020Copper Contributor
That Is supposed to be the correct behavior if your SDS profile was created before the deadline specified in the article. Ours was created a day before so over half of our Teams did get created. The other half had errors that required us to do a reset of the sync. No Teams have been created by SDS after that.
I ended up using PowerShell to create the missing teams.
For those curious:
You will need the Azure AD and Microsoft Teams PowerShell modules installed.
Connect to both Azure AD and Microsoft Teams using your O365 admin credentials.
SDS does not add a description to the group when created, so we put all groups with empty descriptions into a variable. A description is added to the group when a Team is create for it.
We further reduced the list of groups in the variable to only those we need. All of our section groups have the semester and period in the name, so we use that as our filter. Anyone else's names may vary and will need to adjust for it.
We then create a team for each group.
Connect-AzureAD Connect-MicrosoftTeams $tgroups=Get-AzureADGroup -All $true | Where-Object {$_.Description -eq $null} $tgroups = $tgroups | Where-Object { $_.DisplayName -like '*-S2-P*' } $tgroups | ForEach-Object {new-team -group $_.objectid}
- Daniel_CastanedaJun 08, 2020Former Employee
Fue de bastante ayuda, les comparto el código para hacerlo de manera masiva
Connect-AzureAD
Connect-MicrosoftTeams
Import-Csv -Path "C:\teams.csv" | foreach {
$tgroups=Get-AzureADGroup -All $true | Where-Object {$_.Description -eq $null}
$tgroups = $tgroups | Where-Object { $_.DisplayName -like $_.Equipo }$tgroups | ForEach-Object {new-team -group $_.objectid}}