Microsoft Graph 获取 Sharepoint 主要站点

Microsoft Graph getting Sharepoint main sites

Microsoft Graph 是否可以在不检索子站点的情况下检索主站点? 我正在使用以下 URL 来检索这些网站:

https://graph.microsoft.com/v1.0/sites?search=*

问题是它还会检索子站点。 目前,我通过过滤掉没有返回根对象 {} 的项目来绕过这个问题: 根对象:
.

您可以试试这个端点:

https://graph.microsoft.com/v1.0/sites?search=contentclass:STS_Site