无法与具有链接的任何人以及组织外部的人共享Team Drive中的文件

时间:2018-08-02 10:58:34

标签: google-drive-api google-drive-team-drive

我想使用Google Drive API与具有链接的人共享文件。

但是,即使我使用了管理员帐户,我也遇到了错误403错误

  "code": 403,
  "message": "The user does not have sufficient permissions for this file."

我尝试使用API​​ Explorer,但仍然失败。

以下是我的参数,请帮助

fileID:"xxxxxxx"

Request Body
{
  "role": "reader",
  "type": "anyone"
}

还有回应

Response
{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "insufficientFilePermissions",
    "message": "The user does not have sufficient permissions for this file."
   }
  ],
  "code": 403,
  "message": "The user does not have sufficient permissions for this file."
 }
}

请检查并获得帮助。

谢谢

0 个答案:

没有答案