Disable the “Connect to new Microsoft 365 Group” Option in SharePoint Online

Requirement: Disable the “Connect to new Microsoft 365 Group” Option in SharePoint Online site settings menu.

How to disable “Connect to new Microsoft 365 Group” Option in SharePoint Online?

The “Connect to new Microsoft 365 Group” or “Connect to new Office 365 Group” link in the settings menu helps to connect any existing SharePoint Online sites to a new Microsoft 365 Group. Users with site collection admin rights can simply click on the link and follow the wizard to connect SharePoint Online sites to Microsoft 365 group as in SharePoint Online: Connect Existing Team Sites to New Microsoft 365 Group

disable connect to new microsoft 365 group

However, you may want to disable the ability for site admins to connect a site to a Microsoft 365 group for reasons such as governance, etc. Here is how to disable the “Connect to new Microsoft 365 Group” option:

  • Login to SharePoint Online tenant Admin site at https://<Your-Tenant>-admin.sharepoint.com
  • Click on the “Settings” link in the left navigation >> Click on “classic settings page” at the bottom of the page. This takes you to https://<Your-Tenant>-admin.sharepoint.com/_layouts/15/online/TenantSettings.aspx
  • Set the option “Prevent site collection administrators from connection sites to new Microsoft 365 Groups” under “Connections from sites to Microsoft 365 groups”.disable connect to new microsoft 365 group option

This change takes some time to propagate on all sites in the tenant.

Hide Connect to new Microsoft 365 Group link using PnP PowerShell

What if you want to disable connect to Group option for a particular site collection? Well, We can also disable a feature that provides the connection to Office 365 group functionality.

#Parameters
$SiteURL = "https://crescentintranet.sharepoint.com/sites/migration/"
$GroupifyFeatureID = "5007df5b-1eea-49f8-9c02-5debc81ce3f2"

#Connect to PnP
Connect-PnPOnline -url $SiteURL -Interactive

#Disable the "Groupify" feature
Disable-PnPFeature -Identity $GroupifyFeatureID

#To Enable it back, use: Enable-PnPFeature -Identity $GroupifyFeatureID

Salaudeen Rajack

Salaudeen Rajack is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

Leave a Reply