Microsoft Graph - 为什么访问另一个网站集中的子网站需要root网站读取访问权限?

时间:2018-04-05 12:26:23

标签: microsoft-graph sharepoint-online

我试图访问作为嵌套子网站一部分的列表项,如下所示:

https://{mytenant}.sharepoint.com/
    vendorSiteCollection/
        vendorAppSite/
            vendorList

我的测试用户仅对vendorAppSite子网站具有读取权限。我已删除所有其他网站的读取权限,包括root的{​​{1}}网站集。

如果我在浏览器中导航到此处:

https://{mytenant}.sharepoint.com

然后我看到了列表,就像预期一样。

但是,当我在Graph Explorer中提出此请求时:

https://{mytenant}.sharepoint.com/sites/{vendorSiteCollection}/{vendorAppSite}/Lists/{vendorList}/AllItems.aspx

我收到403禁止回复:

https://graph.microsoft.com/v1.0/sites/root:/sites/{vendorSiteCollection}/{vendorAppSite}:/lists/{vendorList}?$expand=items($expand=fields)

我希望能够通过API读取列表项,就像我可以在SharePoint Online UI中看到列表项一样。

如果设置权限级别,我如何使用Microsoft Graph API读取项目?

附注:当测试用户对{ "error": { "code": "accessDenied", "message": "The caller does not have permission to perform the action.", "innerError": { "request-id": "15e2087d-8ae5-46e3-abee-4ab165629dfb", "date": "2018-04-05T12:08:16" } } } 的{​​{1}}网站集具有读取权限时,API会按预期工作。但是这种解决方法对我们没有用,因为我们不希望我们的用户拥有root网站集的读取权限。

1 个答案:

答案 0 :(得分:0)

此问题似乎已在MS图形中得到解决。