Google drive api Google Drive API:无法更新只读文件夹上的文件标签

Google drive api Google Drive API:无法更新只读文件夹上的文件标签,google-drive-api,Google Drive Api,我有两个用户:admin@example.com(“管理”)及user@example.com(“用户”) “Admin”拥有一个googledrive文件夹(假设文件夹的fileId是“F1234”)。“用户”是谷歌集团的成员,该集团对该文件夹具有只读(“查看器”)访问权限 在Google Drive Web界面中,“用户”可以打开文件夹F1234,“用户”可以单击“星”按钮将文件夹放入“星”列表中。到目前为止,一切顺利 现在我想写一个应用程序,将文件夹设置为星号。因此,我以“User”的身份

我有两个用户:admin@example.com(“管理”)及user@example.com(“用户”)

“Admin”拥有一个googledrive文件夹(假设文件夹的fileId是“F1234”)。“用户”是谷歌集团的成员,该集团对该文件夹具有只读(“查看器”)访问权限

在Google Drive Web界面中,“用户”可以打开文件夹F1234,“用户”可以单击“星”按钮将文件夹放入“星”列表中。到目前为止,一切顺利

现在我想写一个应用程序,将文件夹设置为星号。因此,我以“User”的身份登录,然后转到googledriveapi浏览器()并向API浏览器提供OAuth令牌,以代表“User”执行请求。我发送了一个“补丁”请求,将文件夹设置为“星号”:

但此请求失败,错误类型为“权限被拒绝”:

403 Forbidden

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "userAccess",
    "message": "The authenticated user does not have the required access to the file F1234",
    "locationType": "header",
    "location": "Authorization"
   }
  ],
  "code": 403,
  "message": "The authenticated user does not have the required access to the file F1234"
 }
}
我检查了相同的请求是否适用于“用户”拥有的文件夹,或者适用于“用户”拥有读写权限但不属于用户的文件夹。因此,看起来请求确实会因为只读权限而失败,但这与UI的行为不一致(“以星号标记”文件不是修改,因此不需要写访问)


我是遗漏了什么还是这是一个Google Drive API错误?

此行为已被复制。 我会给你报告的。 很抱歉给您带来不便

403 Forbidden

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "userAccess",
    "message": "The authenticated user does not have the required access to the file F1234",
    "locationType": "header",
    "location": "Authorization"
   }
  ],
  "code": 403,
  "message": "The authenticated user does not have the required access to the file F1234"
 }
}