search
263 TopicsConfigure modern search results to search all of your organization (rather than the current site)
Hey everyone, We heard from many of you the need to be able to change the scope of your modern search results pages. When you create a new communication site or team site in SharePoint Online today, and type into the search box, you are taken to the modern search results page. This page shows results from your current site by default, and allows you to expand the scope of your search to the hub that the current site is associated with (if there is one), or to the whole organization. But there is a desire for being able to change the behavior to always search over the whole organization, or across the hub a site is associated with, without needing an additional click, especially if the site in question will be used as a modern landing page for your organization. I'm happy to say that with the latest version of the SharePoint PnP PowerShell extensions, it is possible to run a simple command as the site owner, and make your site use the organization, or the hub scope by default. To change this setting: 1. Start PowerShell in administrator mode as you will be installing the PnP extensions. 2. Run the following commands to in this order: PS C:\WINDOWS\system32> Install-Module SharePointPnPPowerShellOnline # If you previously had installed this module, you may need to use the "-Force" parameter to install the newer version. PS C:\WINDOWS\system32> Connect-PnPOnline -Url https://contosodemosg.sharepoint.com/sites/Strategy -UseWebLogin # this will prompt you to sign into your site. Use the site owner credentials to sign in PS C:\WINDOWS\system32> $web = Get-PnPWeb PS C:\WINDOWS\system32> $web.SearchScope = 1 # 1 for Tenant, 2 for Hub, 3 for Site, 0 for default behavior PS C:\WINDOWS\system32> $web.Update() PS C:\WINDOWS\system32> Invoke-PnPQuery After running these commands, the site will start to show results from the whole organization. To go back to the default setting, run the commands again with the value provided to "SearchScope" parameter to 0. To search across the Hub, use 2 as the SearchScope value. We will be providing a way to set this setting using the UI in a future release as well. Updated in April 2020 to reflect the ability to search across Hubs.Solved102KViews22likes78CommentsXDR advanced hunting region specific endpoints
Hi, I am exploring XDR advanced hunting API to fetch data specific to Microsoft Defender for Endpoint tenants. The official documentation (https://learn.microsoft.com/en-us/defender-xdr/api-advanced-hunting) mentions to switch to Microsoft Graph advanced hunting API. I had below questions related to it: 1. To fetch the region specific(US , China, Global) token and Microsoft Graph service root endpoints(https://learn.microsoft.com/en-us/graph/deployments#app-registration-and-token-service-root-endpoints ) , is the recommended way to fetch the OpenID configuration document (https://learn.microsoft.com/en-us/entra/identity-platform/v2-protocols-oidc#fetch-the-openid-configuration-document) for a tenant ID and based on the response, the region specific SERVICE/TOKEN endpoints could be fetched? Since using it, there is no need to maintain different end points for tenants in different regions. And do we use the global service URL https://login.microsoftonline.com to fetch OpenID config document for a tenantID in any region? 2. As per the documentation, Microsoft Graph Advanced hunting API is not supported in China region (https://learn.microsoft.com/en-us/graph/api/security-security-runhuntingquery?view=graph-rest-1.0&tabs=http). In this case, is it recommended to use Microsoft XDR Advanced hunting APIs(https://learn.microsoft.com/en-us/defender-xdr/api-advanced-hunting) to support all region tenants(China, US, Global)?104Views0likes1CommentBug using streaming API related to new type of event 'CloudProcessEvents'
Hi community, recently i've been trying to send XDR events/logs to a storage account via streaming API option. The problem comes when this bad request appears: This problem is related with a new schema that have been added recently to XDR Advanced Hunting. As you can see the new type of event 'CloudProcessEvents' is not supported via API but it doesnt appear in type of event at the configuration to unselect it. Can someone help?132Views0likes1CommentBUG: Teams "search"/"find" functionality totally broken with rich (formatted) text
Consider the following formatted/rich text comment: Test word1 word2 word3 Using "search"/"find" (either the global "Search", or the "Find in chat" function) will fail to match the comment when searching for either "test", "word1", "word2", or "word3". This is because buggy Teams just strips the formatting (instead of replacing the formatting with breaks), effectively glueing all words together in the index; searching for "testword1word2word3" (one word) DOES match the comment. 🤦🤦🤦38Views0likes0Comments[MS Edge Android] UI Glitch: Suggestions Misaligned in Bottom Search Bar Mode
Hi everyone! I'm experiencing a strange issue with the search suggestions when using bottom bar mode. In Microsoft Edge, there's a blank space between the input bar and the suggestions above it, as shown in the attached image (see the red line). Is anyone else seeing this bug? Any idea how to fix it? Thanks in advance184Views0likes1CommentLimiting Search Box Results to Wiki Page Library
I have created a Wiki Page Library for a knowledge base our team uses and added a search box. I would like the search box to only bring back results from the library, not the entire site, but this doesn't seem to be possible. I've looked at 'edit web part' including in the advanced section but am none the wiser.739Views0likes2CommentsCustom search to search pdf files in certain librarys
Hi! I have set up document system with three different document librarys. Togheter they hold about 32000 pdf documents. I have implement the custom search module on my site and created a custom search resultspage. I have redirected the search to resultspage and defined the document librarys. I have also tried to define the SharePoint result source and search terms but with no luck. I have tried many different combinations like path:https://sharepoint document url like below with no luck. The results find my document librarys, but doesnt search in them for the files. It only shows a link to the document library instead of the files. Is ther something i missing or isnt this possbile to achieve? Do I have to create a Scope? Crawl? I really dont understand those features. Please help! 🙂 {SearchBoxQuery}( (Path:http://sharepoint/sites/demo/dev/DocLib1 (FileExtension:pdf)) OR (Path:http://sharepoint/sites/demo/dev/DocLib2 (FileExtension:pdf)) OR (Path:http://sharepoint/sites/demo/dev/DocLib3(FileExtension:pdf)) )1.2KViews0likes1Comment