How to impersonate a GoogleCredential in a google apps domain?

旧巷老猫 提交于 2019-12-12 05:02:05

问题


I'm making an application wich allows the admin to manage the files of users in the google apps domain. Since the docList api is deprecated I used the Drive api.

How I can create a Drive service as another user while logged in as admin?

Some people suggested to use the OAuth consumer key.

But I don't know how to implement this with oauth-2.0.


回答1:


You might want to check out this post: Google Drive service account returns 403 usageLimits

I used OAuth2 and a service account to accomplish pretty much the same. Keep in mind you need to use the API Console to setup your environment and ensure the service account is added to the Google Apps domain with the proper scopes to allow access.



来源:https://stackoverflow.com/questions/12912509/how-to-impersonate-a-googlecredential-in-a-google-apps-domain

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