Others

How to Change the Default Search Scope in SharePoint Online

Tauseeq MagsiTauseeq Magsi Nov 3, 2026 869 views

Question details

Users need to broaden the default search scope in SharePoint Online from the current site to the entire organization or associated hub.

How to Change the Default Search Scope in SharePoint Online
Product
SharePoint Online
Device & OS
not provided
Scenario
Configuring search settings for modern SharePoint sites to improve content discoverability across an organization.
Observed behavior
By default, the modern search box only returns results from the current site, ignoring content from associated hubs or the wider organization.
Before you start

Ensure you have Site Owner or SharePoint Administrator permissions before attempting to modify search scope configurations or running PnP PowerShell scripts on your tenant.

Solution 1Recommended

Configure Search Scope Using PnP PowerShell

Use SharePoint Patterns and Practices (PnP) PowerShell commands to programmatically set the default search scope to the hub or organization level.

Site owners can utilize PnP PowerShell commands to adjust the default search behavior. This is particularly useful for sites associated with a hub where you want to default to hub-wide search instead of restricting queries to the current site.

1
Install PnP PowerShell

Open your PowerShell terminal as an administrator and install the latest PnP PowerShell module by running the command 'Install-Module PnP.PowerShell'.

2
Connect to SharePoint Online

Connect to your specific SharePoint Online site using the 'Connect-PnPOnline -Url <YourSiteUrl> -Interactive' command.

3
Modify the search scope

Execute the appropriate PnP command, such as 'Set-PnPSearchSettings', to change the default search scope property from the current site to 'Hub' or 'Organization'.

4
Verify the search behavior

Navigate to your modern SharePoint site in a web browser and perform a search query to ensure results are now being pulled from the newly defined broader scope.

Configure Search Scope Using PnP PowerShell
Additional Resources: Consult Microsoft Q&A for SharePoint Online for specific, up-to-date syntax regarding PnP configuration, as PowerShell modules and available parameters are updated frequently.
Free Microsoft Office alternative

Boost Your Productivity with WPS Office

While SharePoint and Microsoft 365 offer deep organizational management, WPS Office provides a free, lightweight, and highly compatible alternative for your daily document processing needs. Enjoy seamless compatibility with Microsoft Word, Excel, and PowerPoint formats without the heavy subscription fees.

  1. 1. Download the installer: Visit the official WPS Office website and click the download button for your specific operating system.
  2. 2. Install the software: Run the downloaded installation file and follow the simple on-screen instructions to set up WPS Office on your device.
  3. 3. Open your documents: Launch WPS Office to instantly view, edit, and create documents, spreadsheets, and presentations with full Microsoft format compatibility.
Free and lightweight complete office suiteFully compatible with Microsoft Office formats (.docx, .xlsx, .pptx)Familiar user-friendly interface for immediate productivityCross-platform support across Windows, Mac, Linux, iOS, and Android
microsoft office alternative - wps office

Frequently Asked Questions

Why does SharePoint search only show results from the current site?

By default, modern SharePoint sites restrict search queries to the current site collection to ensure high relevance for the immediate context. Expanding this to the hub or organizational level requires manual configuration.

Do I need admin rights to change the search scope in SharePoint Online?

Yes, you need at least Site Owner permissions for the specific site, or SharePoint Administrator privileges if you are applying changes across multiple sites or the entire tenant via PowerShell.

Can I change the default search scope without using PowerShell?

While classical SharePoint allowed UI-based scope changes, modern SharePoint sites often require PnP PowerShell extensions to redefine default search boundaries, as many classic UI settings have been deprecated.