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}
We got the same issu to somes Teams are create and some not.
All groups are well created.
Don't find the reason too