经过身份验证的用户尚未授予应用xxx对子文件xxx的写访问权限,这可能会受到父文件操作的影响 [英] The authenticated user has not granted the app xxx write access to the child file xxx, which would be affected by the operation on the parent
问题描述
尝试插入权限时出现以下错误
I hit the below error when trying to insert the permission
代码":403, "message":经过身份验证的用户尚未授予应用xxx对子文件xxx的写访问权限,这将受到父文件操作的影响"
"code": 403, "message": "The authenticated user has not granted the app xxx write access to the child file xxx, which would be affected by the operation on the parent"
这是我在做什么
我们有两个Google帐户, 1. API帐户-我们用于创建文件夹并将所有权更改为企业帐户 2.企业帐户-上传文件
We have two Google Account, 1. API Account - we used to create folder and change the ownership to Business account 2. Business Account - upload a file
现在我们尝试将文件夹共享给客户,并且遇到上述错误
now we try to share to folder to customer and we hit the above error
在这里,我使用OAuth 2.0 Installed Applications获取访问令牌.
And here I using OAuth 2.0 Installed Applications to get the access token.
请告知我我在做什么错了
Please advise what is wrong I am doing here
推荐答案
我遇到了同样的问题,但是我意识到由于凭据范围的原因,其设置不正确.我只有DriveScopes.DRIVE_METADATA设置,不足以下载文件.添加DriveScopes.DRIVE_FILE,DriveScopes.DRIVE和DriveScopes.DRIVE_APPDATA之后,我便可以毫无问题地下载文件.希望这可以帮助. P.S.如果要更改凭据,则必须删除以前保存的凭据文件.
I had the same issue but I realize that its because of the scope for credential wasn't setup properly. I only had DriveScopes.DRIVE_METADATA set which was not enough for downloading files. Once I added DriveScopes.DRIVE_FILE, DriveScopes.DRIVE, and DriveScopes.DRIVE_APPDATA, I was able to download the file without any problem. Hope this helps. P.S. if you are changing credentials, you have to delete the previously saved credential file.
这篇关于经过身份验证的用户尚未授予应用xxx对子文件xxx的写访问权限,这可能会受到父文件操作的影响的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!