我想使用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."
}
}
请检查并获得帮助。
谢谢