首页 > 解决方案 > 使用服务帐号更新团队云端硬盘权限

问题描述

我们在通过服务帐户更新团队云端硬盘权限时遇到问题。

我们已经展示了使用服务帐户列出驱动器和驱动器权限的能力。但是,当我们尝试更新权限时(按照代码片段),我们会遇到错误:

service.permissions().update(fileId=id, permissionId=permissionid, supportsTeamDrives='true', body={"role": "reader"}).execute()

"The authenticated user does not have the required access to update the permission."

我们已确保服务帐户具有分配给团队驱动器的经理角色。我们还验证了我们能够更新具有经理角色的内部和外部帐户的权限。

这是对服务帐户的预期限制吗?这是一个错误吗?

评论中的更新。

标签: google-cloud-platformgoogle-drive-apiservice-accounts

解决方案


推荐阅读