Google Drive SDK Update (delete/insert) Owner Permission 500 Error in Try It Demo

时光怂恿深爱的人放手 提交于 2019-11-30 15:28:11

I filed an internal bug for our engineers to investigate, however, I only managed to reproduce the issue when trying to share with an user from an external domain and not with one from the same domain.

Google Apps domain admins can prevent their users from changing ownership to external users, but in that case the API should not return a 500 and instead fail with a descriptive error message.

I'll update this answer as soon as I hear back from our investigation.

using transferOwnership flag solved the problem for me.

in python api client, you can do:

service.permissions().patch(
        fileId=doc.drive_id, permissionId=permission_id,
        body=patched_permission, transferOwnership=True).execute()

I've met the same problem several months ago. And I retried it yesterday ands it seems working now. It seems Google engineer already fixed the problem.

Hope it start working for you too.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!