Google Admin SDK Unable to Create User - Exception 403 Forbidden

浪子不回头ぞ 提交于 2019-11-28 14:09:33

It doesn't look like that your service account is impersonating any users in this call. When you want to use a service account to create a new user, you need to impersonate as the administrator account (Note: only administrator can create users).

Take a look at this Drive example for domain wide delegation:

https://developers.google.com/drive/delegation

You can see that for the .net portion, it has this extra line:

ServiceAccountUser = userEmail

You need to create a service object authorized with the service account that will acts on behalf of the given user.

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