G Suite Admin API to access drive of all users

十年热恋 提交于 2021-01-28 05:36:05

问题


I need to access all the files from the google drive account of all the G Suite user account from admin account.

Using Google Apps Admin SDKAPI, I can access information of all account but unable to access their Drive.

I have seen admin can access google drive of all the users by admin console UI, but unable to find API for same. I can access google drive from individuals access token with this API, but not of all users by admin token. Can anyone please help me into this?


回答1:


For this you must use Google Drive Api. You have to add the scope of your app inside security in the control panel.

With this you can autenticate has any user in the G Suite Domain and use the Google Drive as the user.

Here you can check more information about it https://developers.google.com/drive/v3/web/about-auth




回答2:


You may check this thread Can the domain administrator see / edit all documents in Google Docs domain?.

No, the domain administrator can NOT see or edit any documents that you do not share with him or her. Google Docs are automatically private and you have to change the Share settings to invite the administrator as an owner, collaborator, or viewer.

However, the administrator is able to go in to his domain control panel and reset your password to a new password that he or she knows. Then the administrator can log in as you and see and edit your documents. Keep in mind that any password you set is private. The administrator can only reset your password to another password that he or she knows. Of course, with any domain, you need to trust the administrator not to invade your privacy and they should have posted their terms of use and privacy policy for their domain.

You can find in this link the Pre-built administrator roles wherein each role grants one or more privileges that together, allow performing a common business function.



来源:https://stackoverflow.com/questions/43571666/g-suite-admin-api-to-access-drive-of-all-users

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