Google Directory API returns Not Authorized when call users().list().execute()

后端 未结 4 1292
孤独总比滥情好
孤独总比滥情好 2020-12-17 05:06

I need to read the list of users (and groups) from my google domain.

So I went to my Google APIs Console and enabled Admin SDK and created a

4条回答
  •  醉酒成梦
    2020-12-17 05:34

    You can grant the service account access to certain scopes in the Control Panel as explained in the Google Drive domain-wide documentation. Just use Admin SDK scopes instead.

    The application name is used in the User-Agent header of requests and so is not overly important, just use your apps name and maybe version.

提交回复
热议问题