Using Microsoft Graph to filter on siteCollection property

Established Member

I want to get a list of all SharePoint sites on the tenant using Graph. But when I make a request, it brings everything including user OneDrives. From the data it seems that you can use siteCollection property to filter the data.

siteCollection : @{} - OneDrive

siteCollection : @{} - SharePoint Site


I am making requests via PowerShell. So far tried variations of these:


But no luck. Just brings back empty value

@odata.context                                                                                                  value
--------------                                                                                                       -----$metadata#sites(webUrl,siteCollection)       {}


0 Replies