I'am using the Modern Search Webpart v.4 in SP Online. I want to search all SharePoint sites which are created from template GROUP, assigned to this site which is a hub. If possible also show only if I have permissions on this site.

I have tried the following after research but it's not working:

SiteTiel:{searchTerms} SiteTemplate:GROUP AND DepartmentID:{{PageContext.hubSiteId}}


1 Answer 1


I've found a solution:

On the Site set the refinement filter to:

contentclass:STS_Site AND DepartmentId =f9f300f4-5df0-4564-b71f-XXXXXXXXXXXX

Because only to the hub assigned sites where I have permissions are displayed it meets my requirements.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.