通过Graph获取Sharepoint网站集的所有者 [英] Getting a Sharepoint site collection's owner with Graph
问题描述
如何通过Graph API获取Sharepoint Online网站集的所有者?
How do I get a Sharepoint Online site collection's owner with the Graph API?
此页面这些文件似乎表明,获取网站集的根网站会返回其所有者,但是当我在Graph Explorer中对其进行测试时,它不起作用.
This page of the documents seems to suggest that getting a site collection's root site returns its owner, however it didn't work when I tested it in Graph Explorer.
我是否缺少一些参数,是否还有其他API,或者根本不可能吗?
Am I missing some parameters, are there other APIs, or is it simply impossible?
推荐答案
我缺少一些参数
Am I missing some parameters
否
还有其他API
are there other APIs
否
还是完全不可能?
or is it simply impossible?
可能,但是api仍在开发中.当前的端点主要用于预览和评估.
It is possible, but the api is still in development. Current endpoint is primarily intended to preview and evaluation.
重要:Microsoft Graph中/beta版本下的API位于 预览,并随时可能更改.在生产中使用这些API 不支持应用程序.
Important: APIs under the /beta version in Microsoft Graph are in preview and are subject to change. Use of these APIs in production applications is not supported.
稳定版本端点的响应格式:
The response format for stable version endpoint:
{
"id": "contoso.sharepoint.com,2C712604-1370-44E7-A1F5-426573FDA80A,2D2244C3-251A-49EA-93A8-39E1C3A060FE",
"displayName": "OneDrive Team Site",
"name": "1drvteam",
"createdDateTime": "2017-05-09T20:56:00Z",
"lastModifiedDateTime": "2017-05-09T20:56:01Z",
"webUrl": "https://contoso.sharepoint.com/teams/1drvteam"
}
For production scene, please following the production version.
这篇关于通过Graph获取Sharepoint网站集的所有者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!