Reputation: 135
I am using the Google API Explorer to test updating permissions. Using the correct fileId and permissionId, I am able to update the given user's permission to either reader or writer but when I try to update to owner I receive a 500 Internal Server Error.
Note: I am able to recreate the same issue using the Google Client Library for Python.
Upvotes: 0
Views: 1552
Reputation: 13528
Google Drive Files can only have one owner so giving a user owner access to the file reduces the current owner's permissions to writer and transfers ownership to the new user (meaning it counts against the new user's quota). Google Drive Files can only be transferred between users in the same Google Apps instance. Attempting to grant a user owner rights across Google Apps instances or with consumer (gmail.com) accounts and non-Docs-native files will result in this 500 error.
Google describes how file ownership can be changed in their help article. The API follows the same limitations as the UI.
Upvotes: 1