有什么方法可以使用 Graph API 获取 SharePoint 站点创建者电子邮件和站点状态

Is there any way to get SharePoint Site Creator Email and Site Status using Graph API

我想使用 MS Graph API 获取网站创建者(网站创建者)的电子邮件,以及网站的当前状态(活动、已删除等)。

能不能帮我查询一下。

我在 MS 文章中进行了搜索,但找不到正确的查询。

没有。 Microsoft Graph 中不提供 SharePoint 网站的创建者和状态。

可以看到站点Properties没有可疑信息。

您需要使用 PowerShell 或 CSOM 获取所需信息。

根据文档,站点资源中没有创建者和 stauts 属性:https://docs.microsoft.com/en-us/graph/api/resources/site?view=graph-rest-1.0

所以你无法通过图 api 实现这一点。我建议您改用 rest api。