user1507720
user1507720

Reputation: 211

Google Drive changing permissions by service account

Looking for the best current approach for admins of a Google Apps domain to modify the permissions of a Google Drive object owned by other users. I'll be developing the app on Google App Engine.

It was straightforward using 2 legged OAuth and the Google Documents List API: https://developers.google.com/gdata/docs/auth/oauth#2LeggedOAuth but now that Google Drive SDK is the live API, I see that service accounts are the encouraged method: Does google Drive api support 2 legged oauth? and https://developers.google.com/accounts/docs/OAuth2ServiceAccount . So I'm following an example that uses this approach and the Prediction API: https://developers.google.com/appengine/articles/prediction_service_accounts and you cannot use the GAE service account in the Team section of the API console. Get an error: "User [email protected] may not be added to project "New Proj Name". Only members from domain myappsdomain.com may be added.

So, I'm basically asking: 1) How do you use service accounts with Google Drive SDK for admin tasks like changing permissions 2) And any working GAE service account tutorials using the Drive API that work with non-domain users.

Upvotes: 5

Views: 3348

Answers (1)

Claudio Cherubino
Claudio Cherubino

Reputation: 15024

The documentation about Service Accounts and user impersonation has just been added:

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

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

Unfortunately, App Engine Service Accounts are not supported by Google Drive yet.

Upvotes: 3

Related Questions