【问题标题】:Graph API - Check if user has Full access to Office 365 Planner TaskGraph API - 检查用户是否具有对 Office 365 Planner 任务的完全访问权限
【发布时间】:2020-07-14 03:04:56
【问题描述】:

使用我们为计划任务请求 oauth 访问令牌的图形 API,我成功收到了访问令牌。令牌列出的范围如下

Calendars.ReadWrite Contacts.ReadWrite Directory.Read.All Group.ReadWrite.All Notes.ReadWrite People.Read **Tasks.ReadWrite** User.Read.All profile openid email

但是当我尝试执行任何计划任务时,我收到以下错误。 GET /groups/{group-id}/planner/plans

错误是The resource you are looking for might have been removed, had its name changed, or its temporarily unavailable

是否可以识别用户在其帐户中可以访问的资源?是否有任何图形 API 可以为用户列出资源。

【问题讨论】:

    标签: microsoft-graph-api microsoft-graph-plannertasks


    【解决方案1】:

    Tasks.ReadWrite 不适用于 Planner,但您拥有 Group.ReadWrite.All,这是正确的权限,因此问题不在于范围。

    读取组内计划的任务要求调用者是组的成员。作为所有者是行不通的。

    没有一个 API 可以为您提供用户可以访问的所有计划。最好的方法是list the groups that the user is a member ofget the list of plans in each group

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-11-15
      • 1970-01-01
      • 2010-10-04
      • 1970-01-01
      • 2016-10-29
      • 1970-01-01
      • 2017-03-21
      • 1970-01-01
      相关资源
      最近更新 更多