有没有办法获取有关安装我的应用程序的管理员的信息?

时间:2014-11-12 16:24:40

标签: google-apps-marketplace

我正在为Google Apps Marketplace开发应用程序。

我使用Licensing API来检索通知。我需要获取有关安装该应用的管理员的信息,但API并未向我提供此信息。

我找到的解决方案是使用the Directory API搜索用户,但收到错误

{
    "error": {
     "errors": [
      {
       "domain": "global",
       "reason": "forbidden",
       "message": "Not Authorized to access this resource/api"
      }
     ],
     "code": 403,
     "message": "Not Authorized to access this resource/api"
    }
}

我的要求有什么问题? 有没有其他解决方案来获取有关管理员的信息?

auth范围:

- "email"
- "profile"
- "https://www.googleapis.com/auth/drive"
- "https://www.googleapis.com/auth/drive.file"
- "https://www.googleapis.com/auth/admin.directory.user.readonly"
- "https://www.googleapis.com/auth/admin.directory.group.readonly"

0 个答案:

没有答案
相关问题