【发布时间】:2017-07-01 10:18:43
【问题描述】:
我通过 console.developers.google.com 创建了服务帐户客户端。生成的密钥、.p12 证书、启用 DwD 等等...... 然后我继续在 Admin API references 中担任描述者。 (HTTP/REST 版本)。这包括在 Google Admin -> Security -> Advancet Settings 中为这些客户端 ID 分配范围。 Current admin security config state 在我成功交换访问令牌的代码并请求我的域下的用户列表后,我得到了这个响应。
{
"error": {
"errors": [
{
"domain": "global",
"reason": "forbidden",
"message": "Not Authorized to access this resource/api"
}
],
"code": 403,
"message": "Not Authorized to access this resource/api"
}
}
请求是 GET,授权承载 ya29.ElrxA8F[其余的 acctoken] 并且 google 开发控制台仪表板在 Admin SDK 中显示带有错误请求的图表
【问题讨论】:
标签: rest google-admin-sdk google-oauth service-accounts