【问题标题】:Microsoft Graph - Why is root site read access needed to access subsite in another site collection?Microsoft Graph - 为什么访问另一个网站集中的子网站需要根网站读取访问权限?
【发布时间】:2018-09-15 06:39:42
【问题描述】:

我正在尝试访问作为嵌套子站点一部分的列表项,如下所示:

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

我的测试用户只有vendorAppSite 子站点的读取权限。我已删除所有其他网站的读取权限,包括https://{mytenant}.sharepoint.comroot 网站集。

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

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

然后我看到了列表,正如预期的那样。

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

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

我收到 403 禁止响应:

{
    "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"
        }
    }
}

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

当权限级别设置为这样时,如何使用 Microsoft Graph API 读取项目?

旁注:当测试用户对root 网站集https://{mytenant}.sharepoint.com 具有读取权限时,API 将按预期工作。但这种解决方法对我们不起作用,因为我们不希望我们的用户拥有对 root 网站集的读取权限。

【问题讨论】:

    标签: microsoft-graph-api sharepoint-online


    【解决方案1】:

    这个问题似乎已在 MS Graph 中得到解决。

    【讨论】:

      猜你喜欢
      • 2016-07-28
      • 2021-05-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-25
      • 2019-11-11
      相关资源
      最近更新 更多