无法再通过 Graph API 找到 SharePoint 网站资产列表

Rem*_*lok 1 sharepoint microsoft-graph-api

我使用 Microsoft Graph API 来查询 SharePoint。直到最近,我才能够通过 Graph API 找到“站点资产”文档库。我再也找不到清单了。

我尝试过哪些查询:

https://graph.microsoft.com/v1.0/sites/{siteid}/lists?select=weburl
Run Code Online (Sandbox Code Playgroud)

没有 URL 与站点资产列表匹配。下一个:

https://graph.microsoft.com/v1.0/sites/{siteid}/drives?select=weburl
Run Code Online (Sandbox Code Playgroud)

同样没有 URL 与站点资产列表匹配。在过去,我总是能够找到使用第二个查询的资产。我将两个查询都切换到测试版,也没有结果。

我查看了 Graph API 中的变更日志,但没有列出任何相关内容。

我如何(现在)在任何 SharePoint 网站上找到“网站资产”列表?

Bra*_*rad 5

默认情况下listsdrives枚举和枚举都试图隐藏系统对象,但不幸的是,在 SharePoint 中这样做并非易事。因此,直到最近我们确定它们没有通过时,一些系统列表仍然存在。

您仍然可以看到它们,但是您需要通过请求systemfacet来明确地请求它们。

https://graph.microsoft.com/v1.0/sites/{siteid}/lists?select=weburl,system
https://graph.microsoft.com/v1.0/sites/{siteid}/drives?select=weburl,system
Run Code Online (Sandbox Code Playgroud)