How to Change the Default Search Scope in SharePoint Online
Question details
Users need to broaden the default search scope in SharePoint Online from the current site to the entire organization or associated hub.

- 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.
Ensure you have Site Owner or SharePoint Administrator permissions before attempting to modify search scope configurations or running PnP PowerShell scripts on your tenant.
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.
Open your PowerShell terminal as an administrator and install the latest PnP PowerShell module by running the command 'Install-Module PnP.PowerShell'.
Connect to your specific SharePoint Online site using the 'Connect-PnPOnline -Url <YourSiteUrl> -Interactive' command.
Execute the appropriate PnP command, such as 'Set-PnPSearchSettings', to change the default search scope property from the current site to 'Hub' or 'Organization'.
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.

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. Download the installer: Visit the official WPS Office website and click the download button for your specific operating system.
- 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. Open your documents: Launch WPS Office to instantly view, edit, and create documents, spreadsheets, and presentations with full Microsoft format compatibility.

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.




