Reputation: 31
I have an app that uses a Google Service Account to create either a Fusion Tables or Google Spreadsheet document. This app then changes the ownership of that document to another user ([email protected]). This enables the app to publish (insert rows) to the document, but gives full control over the document to the specified user.
Everything works fine if the other user is an @gmail.com user. However, if it is an apps domain user (e.g., [email protected]), the permission change results in this error:
{ "error": { "errors": [ { "domain": "global", "reason": "internalError", "message": "Internal Error" } ], "code": 500, "message": "Internal Error" }}{"value":"[email protected]","role":"owner","type":"user","kind":"drive#permission"}
Here is the outcomes matrix:
Service Account created by
[email protected] [email protected]
Ownership assigned to: [email protected] works works
Ownership assigned to: [email protected] broken broken
Ownership assigned to: [email protected] broken broken
Are Google Drive permissions changes broken for apps domains?
Upvotes: 3
Views: 1139
Reputation: 1061
This is due to that when changing ownership, the both email-domain must belong to the same domain. Then it is possible to change the ownership to the other user.
Upvotes: 2