【问题标题】:Office Graph TrendingAround always return 403 ForbiddenOffice Graph TrendingAround 总是返回 403 Forbidden
【发布时间】:2016-05-12 21:10:28
【问题描述】:

尽管 App 具有 File.Read 权限,但对 https://graph.microsoft.com/beta/me/trendingAround 的调用返回“403 Forbidden”。

我已经检查过了 http://graph.microsoft.io/en-us/docs/authorization/permission_scopes 并没有找到任何更合适的特权。我什至尝试授予 dev.office.com/app-registration 上列出的所有权限,但响应相同。

调用 graph.microsoft.com/beta/me/people 有效。

如果我尝试 graph.microsoft.io/en-us/graph-explorer 上的 trendingAround API,它也可以工作,但不能在应用程序中使用。

【问题讨论】:

    标签: office365 office365api microsoft-graph-api


    【解决方案1】:

    List trendingAround API 需要 Sites.Read.All 权限,这在https://dev.office.com/app-registration 中没有列出。您需要在 Azure Active Directory 中分配此权限。

    1. 转到 Azure AD > 应用程序中的 Office 365 租户。

    1. 找到您注册的应用程序或注册一个新应用程序。

    2. Microsoft Graph > 委派权限 > 读取所有网站集中的项目。

    更多详情请查看文档Manually register your app with Azure AD so it can access Office 365 APIs

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-05-26
      • 2023-02-24
      • 1970-01-01
      • 2023-01-20
      • 1970-01-01
      • 2017-05-15
      • 2022-01-10
      相关资源
      最近更新 更多