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}
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
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}}