首页 文章

Google Cloud 端硬盘按服务帐户更改权限

提问于
浏览
5

正在寻找管理Google Apps域管理员的最佳方法,以修改其他用户拥有的Google Cloud 端硬盘对象的权限 . 我将在Google App Engine上开发应用程序 .

使用2脚OAuth和Google Documents List API很简单:https://developers.google.com/gdata/docs/auth/oauth#2LeggedOAuth但是现在Google Drive SDK是实时API,我看到服务帐户是鼓励方法:Does google Drive api support 2 legged oauth?https://developers.google.com/accounts/docs/OAuth2ServiceAccount . 所以我正在关注使用此方法和Prediction API的示例:https://developers.google.com/appengine/articles/prediction_service_accounts并且您无法在API控制台的“团队”部分中使用GAE服务帐户 . 收到错误:"User xxx@appspot.gserviceaccount.com may not be added to project " New Proj Name“ . 只能添加来自域myappsdomain.com的成员 .

所以,我基本上要问:1)如何使用Google Drive SDK的服务帐户进行管理任务,例如更改权限2)以及使用与非域用户合作的Drive API的任何有效的GAE服务帐户教程 .

1 回答

相关问题