Forum Discussion

NickBeagin's avatar
NickBeagin
Copper Contributor
Apr 03, 2020
Solved

Groups are created by SDS but not teams

SDS works fine in that it creates groups but not teams. Teachers cannot see the groups to make teams from either even though they are owners of the group. Groups appear in assignments in the Teams ...
  • Mgutierrez215's avatar
    Mgutierrez215
    Apr 07, 2020

    NickBeagin 

    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}

     

     

     

     

Resources