【问题标题】:Microsoft Graph API | How to get threadID from Powershell Graph API?微软图形 API |如何从 Powershell Graph API 获取 threadID?
【发布时间】:2019-05-17 06:51:57
【问题描述】:

当我尝试使用此查询来获取线程 ID 时,我可以从图形资源管理器获取结果,而我在使用图形 API 的 powershell 上遇到错误。

{
  "error": {
    "code": "ErrorAccessDenied",
    "message": "Access is denied. Check credentials and try again.",
    "innerError": {
      "request-id": "ff308d27-f08b-4e53-80d6-f8634ac7d1ed",
      "date": "2019-05-17T06:31:12"
    }
  }
}

这是我在两种环境中都尝试过的查询。 获取 https://graph.microsoft.com/beta/groups/[groupid]/threads/[threadid]

为什么只有资源管理器运行良好,但在我的 powershell 模式下却不行? :(

如何使用 Powershell 命令获取线程 ID?

【问题讨论】:

  • 发现 - 从 API 权限,我授予 Mail.ReadWrite ! :)
  • 太棒了!如果这可能对未来的读者有帮助,请在下面添加答案。

标签: powershell microsoft-graph-api


【解决方案1】:

找到解决方案: 从具有 Graph API 权限的 AAD 页面,我授予了代表和用户的 Mail.ReadWrite。 :)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多