我正在尝试使用域委托将G Suite与服务帐户连接,以获取组列表。
遵循https://cloud.google.com/php/getting-started/using-cloud-sql-with-mysql之后,这是我的步骤:
{
"issued_to": "MY_CLIENT_ID",
"audience": "MY_CLIENT_ID",
"scope": "https://www.googleapis.com/auth/admin.directory.group
https://www.googleapis.com/auth/admin.directory.group.readonly",
"expires_in": 3586,
"access_type": "offline"
}
GET: here***.com&customer=***********
HEADER: Authorization: Bearer + access_token
不幸的是,我得到的答复是:
{ "error": { "errors": [ { "domain": "global", "reason": "insufficientPermissions", "message": "Insufficient Permission" } ], "code": 403, "message": "Insufficient Permission" } }
{ "error": { "errors": [ { "domain": "global", "reason": "insufficientPermissions", "message": "Insufficient Permission" } ], "code": 403, "message": "Insufficient Permission" } }