Is there any way to get the information about admin who installed my app?

痞子三分冷 提交于 2019-12-25 04:45:23

问题


I am developing an application for the Google Apps Marketplace.

I use the Licensing API to retrieve the notifications. I need to get the information about admin, who installed the app, but the API doesn't provide me with this.

The solution I found is to use the Directory API to search users, but I get an error

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

What is wrong with my request? Are there any other solutions to get the information about admin?

The auth scopes:

- "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"

来源:https://stackoverflow.com/questions/26891704/is-there-any-way-to-get-the-information-about-admin-who-installed-my-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!