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

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

How to disable the “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:

  1. Login to SharePoint Online tenant Admin site at https://<Your-Tenant>-admin.sharepoint.com
  2. 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
  3. 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.

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

$SiteURL = "https://Crescent.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 - Information Technology Expert with Two-decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. He has held various positions including SharePoint Architect, Administrator, Developer and consultant, has helped many organizations to implement and optimize SharePoint solutions. Known for his deep technical expertise, He's passionate about sharing the knowledge and insights to help others, through the real-world articles!

Leave a Reply

Your email address will not be published. Required fields are marked *