Adding Office 365 Groups results to your SharePoint search REST query

67 0

When you read this, you may have been searching for a way how to include Office 365 (private) Groups in search results when querying SharePoint using REST. The shortest answers of sorts is to add the following key-pair to your query string:

Properties='ClientFunction:AllResults,EnableDynamicGroups:true'

So, if you want to “find” all site collections incl. the ones that belong to an Office 365 Group, you can use something like …

https://[yourtenant].sharepoint.com/_api/search/query?querytext='STS_Site'&Properties='ClientFunction:AllResults,EnableDynamicGroups:true'
Facebook Comments