【问题标题】:Manage a Sharepoint Site with Microsoft Graph API using an Azure AD Entreprise Application使用 Azure AD 企业应用程序通过 Microsoft Graph API 管理 Sharepoint 站点
【发布时间】:2021-06-15 13:31:09
【问题描述】:

我在 Azure AD 中创建了一个企业应用程序,该应用程序在 Microsoft Graph API 上具有 Sites.ReadWrite.All 权限。请求 Microsoft Graph API 时,我可以在我的组织的公共站点上读取和写入数据,但不能在私有站点上(例如:请求 URL 时:https://graph.microsoft.com/beta/sites/xxxxxxx-xxx-xxxx-xxxx-xxxxxxxxxx,我明白了消息:Requested site could not be found)。

我尝试通过在 Sharepoint 站点的“添加成员”面板中输入其 ID 来添加我的企业应用程序,但没有找到。如何授权我的企业应用程序在私人网站上进行查询?

【问题讨论】:

    标签: azure sharepoint azure-active-directory microsoft-graph-api


    【解决方案1】:

    使用 Sites.ReadWrite.All 权限,您可以访问和编辑租赁中的所有站点,包括公共站点和私有站点。请仔细检查您的网站 ID。

    尝试使用此端点访问该站点,

    'https://graph.microsoft.com/v1.0/sites/{{ TENANT NAME }}.sharepoint.com:/sites/{{ SITE NAME }}:/'
    

    将 {{ TENANT NAME }} 替换为您的租约

    将 {{ SITE NAME }} 替换为私有站点的名称

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-07-21
      • 2016-10-16
      • 2019-03-25
      • 2021-10-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多