Accessing G Suite Admin SDK using service account

假如想象 提交于 2019-12-01 08:19:34

Got this working! The domain-wide authority delegation and impersonation (a sub = "user@example.com" entry in the $rawclaims) were necessary and correct.

The problem was that there was a mismatch between the privileges granted to the service account through the domain-wide delegation, and those requested in my claim (I had several):

scope = "https://www.googleapis.com/auth/admin.directory.user https://www.googleapis.com/auth/iam https://www.googleapis.com/auth/cloud-platform"

Once claims matched granted privileges, I received my tokens.

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