2016-05-14 131 views
0

有没有一种方法可以从为Drive API创建的服务帐户中删除数据,因为这将达到存储限制。我可以将数据传输到另一个非服务帐户吗?或者我可以用这个服务帐户替代另一个吗?所以我可以继续使用我的项目,还是应该创建一个新项目并将其与新的服务帐户相集成?Drive API上的服务帐户已达到存储限制

可能的解决方案似乎在这些其他问题上进行了描述,但我还不确定解决方案。

Google Drive Service Accounts Additional Storage

Quota, orphaned files and uploads using service account with Google Drive API

Google Drive API ownership of files uploaded from service account

Google APPs managed "unlimited" account storage quota for service account

能否请你帮忙吗?

回答

0

据我所知,服务帐户目前无法购买额外的存储空间,所以如果您需要更多的存储空间,您需要改用普通的Google帐户。除此之外,使用Google Drive API也无法更改服务帐户文件的所有权。

我现在发现的唯一可能的选择是通过SO post-How to use a service account to transfer ownership of a google file中给出的应用程序脚本将服务帐户文件的所有权转移到另一个帐户。

传输文件所有权后,为了继续使用您的项目,您可以将所有者权限授予您需要通过共享文档访问的驱动器文件中的服务帐户。

Jalogar在SO中给出的解决方案 - Drive API access to document with service account可能真的有所帮助。

相关问题