Forum Discussion

bynum's avatar
bynum
Iron Contributor
Jan 22, 2019

Is it possible to disconnect a site from an O365 group?

I'm interested in keeping a site collection that is connected to an Office 365 group, but I want to delete the group and "disconnect" it from the site (basically the opposite of what is possible when you "groupify" a team site). Does anyone know if this is a PowerShell command?

11 Replies

  • johnboy1970's avatar
    johnboy1970
    Copper Contributor

    bynum Agreed. What a mess in Azure when you create a Team Site? An O365 Microsoft Group is auto-created as the name of the site, but the Groups <Site Name> Owners, < Site Name> Members and <Site name> Visitors are created. Now for some reason the <Site Name> Owners is no longer selectable in SharePoint Online (someone may have deleted) and yet still shows as exists in Members of Site. So basically I need to do the same as disconnect this site from the O365 Group.    

    • johnboy1970's avatar
      johnboy1970
      Copper Contributor

      This is after waiting days so has surpassed the 24 hour period.

    • Praveen_Battula's avatar
      Praveen_Battula
      Copper Contributor

      AndrewWarland bynum  I didn't try this. But, you can take a look at the command available in PowerShell. 

       

      https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/remove-spositegroup?view=sharepoint-ps

       

      -Praveen.

Resources