【发布时间】: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