5

为 Google Apps 域的管理员寻找当前最好的方法来修改其他用户拥有的 Google Drive 对象的权限。我将在 Google App Engine 上开发应用程序。

使用 2 legged OAuth 和 Google Documents List API 很简单:https ://developers.google.com/gdata/docs/auth/oauth#2LeggedOAuth但现在 Google Drive SDK 是实时 API,我看到服务帐户是鼓励的方法:Google Drive api 是否支持 2 legged oauth?https://developers.google.com/accounts/docs/OAuth2ServiceAccount。所以我正在关注一个使用这种方法和预测 API 的示例:https ://developers.google.com/appengine/articles/prediction_service_accounts并且您不能在 API 控制台的 Team 部分中使用 GAE 服务帐户。收到错误:“用户 xxx@appspot.gserviceaccount.com 可能无法添加到项目“新项目名称”中。只能添加来自域 myappsdomain.com 的成员。

所以,我基本上是在问:1)您如何将服务帐户与 Google Drive SDK 一起用于管理任务,例如更改权限 2)以及使用与非域用户一起使用的 Drive API 的任何工作 GAE 服务帐户教程。

4

1 回答 1

3

刚刚添加了有关服务帐户和用户模拟的文档:

https://developers.google.com/drive/service-accounts

https://developers.google.com/drive/user-impersonation

遗憾的是,Google Drive 尚不支持 App Engine 服务帐户。

于 2012-10-30T17:17:29.017 回答