How to Enable or Disable Spaces Feature in SharePoint Online?
Requirement: Enable/Disable the SharePoint Spaces feature in SharePoint Online.
How to enable the “Spaces” in SharePoint Online?
SharePoint spaces is an immersive platform that lets you render 2D/3D images on modern sites and can be an excellent addition for applications like learning programs, product catalogs, Virtual tours (360° Tour), Interactive content, etc., to deliver mixed reality experience to users.
Activate Spaces Feature in SharePoint Online:
Follow these steps to activate the “Spaces” feature in SharePoint Online.
- Go to your SharePoint Online site >> Click on the Settings gear icon in the top-right corner of the page.
- Click Site information >> Click on the “View all site settings” link.
- Click on “Manage site features” under the “Site Administration” group.
- Locate the “Spaces” and click Activate (if not already activated!).
Now, navigate to your Home page, click on “+ New”, and you should find “Space” in the menu.
Activating the Spaces feature for the web can be achieved with PowerShell as well:
Enable-PnPFeature -Identity 2ac9c540-6db4-4155-892c-3273957f1926 -Scope Web
Disable Spaces Feature in SharePoint Online
Use Set-SPODisableSpacesActivation cmdlet to enable or disable SharePoint spaces. To disable the spaces feature at the site collection level, use:
#Parameters
$AdminCenterURL = "https://Crescent-admin.sharepoint.com"
$SiteURL = "https://Crescent.sharepoint.com/sites/Operations"
#Connect to SharePoint Online
Connect-SPOService -Url $AdminCenterURL
#Disable Spaces Feature at the Site Collection
Set-SPODisableSpacesActivation -Disable $True -Scope Site -Identity $SiteURL
To disable the Spaces feature at the tenant level, use:
#Parameters
$AdminCenterURL = "https://Crescent-admin.sharepoint.com"
#Connect to SharePoint Online
Connect-SPOService -Url $AdminCenterURL
#Disable Spaces Feature at the tenant
Set-SPODisableSpacesActivation -Disable $true -scope Tenant
It takes a while for the changes to take effect when you apply them at the tenant level. Similarly, to enable it back, Simply use $False flag for -Disable parameter on the above cmdlet. E.g.,
#Enable Spaces Feature at the tenant
Set-SPODisableSpacesActivation -Disable $False -scope Tenant