【发布时间】:2015-07-01 16:56:04
【问题描述】:
我正在使用 Google Directory API 来检索一个人所属的所有组,以便在我正在开发的应用程序中获得基于角色的权限。
https://developers.google.com/admin-sdk/directory/v1/guides/manage-groups#get_all_member_groups
我们的管理员能够使用API Explorer 成功检索他所属的组列表,但我不是。我收到以下错误,我假设这是因为我不是管理员。
{
"error": {
"errors": [
{
"domain": "global",
"reason": "forbidden",
"message": "Not Authorized to access this resource/api"
}
],
"code": 403,
"message": "Not Authorized to access this resource/api"
}
}
我们如何检索用户所属的组?有没有办法提供管理员凭据来检索用户所属的组?
【问题讨论】:
标签: google-admin-sdk