I am unable to generate the public shared link for Google Drive file. I use Google apps and have admin access. I have also created my own client id using OAuth 2.0 Client IDs but not a service account
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Mac Catalina
Unraid
Rclone link gdrive:folder/1.docx
Failed to link : google Api error 403 The user does not have sufficient permission for the file is, insufficientfilepermission
// TODO: On TeamDrives this might fail if lacking permissions to change ACLs.
// Need to either check `canShare` attribute on the object or see if a sufficient permission is already present.
Is this a team drive? Do you have permissions to change ACLs?
Thanks for the reply.
It is I who's uploaded the file via rclone. I've also enabled a service account now with domain wise delegation access.
2020/07/22 18:51:17 DEBUG : rclone: Version "v1.52.1" starting with parameters ["rclone" "link" "gdrive:1.docx" "--log-file=/Users/mABCCCC/Desktop/All Data/1.txt" "--log-level" "DEBUG"]
2020/07/22 18:51:17 DEBUG : Using config file from "/Users/mABCCCC/.config/rclone/rclone.conf"
2020/07/22 18:51:19 DEBUG : Google drive root '1.docx': attempting to share directory ''
2020/07/22 18:51:23 DEBUG : 8 go routines active
2020/07/22 18:51:23 Failed to link: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
You'd still have something going on via permissions albeit I'm not sure what else to check as if you are using a user that owns the account, it does work without issue.
textere@seraphim ~ % rclone copy /etc/hosts GD:
textere@seraphim ~ % rclone link GD:hosts -vv
2020/07/22 10:45:40 DEBUG : rclone: Version "v1.52.0" starting with parameters ["rclone" "link" "GD:hosts" "-vv"]
2020/07/22 10:45:40 DEBUG : Using config file from "/Users/textere/Documents/rclone.conf"
2020/07/22 10:45:40 DEBUG : fs cache: renaming cache item "GD:hosts" to be canonical "GD:"
2020/07/22 10:45:40 DEBUG : Google drive root '': attempting to share single file 'hosts'
https://drive.google.com/open?id=1X4dQHmKtM3vMhGwQxSVYbcZnyaidH4J_
2020/07/22 10:45:41 DEBUG : 6 go routines active
textere@seraphim ~ % rclone delete GD:hosts
textere@seraphim ~ %
2020/07/22 22:43:06 DEBUG : Using config file from "/Users/prashantm/.config/rclone/rclone.conf"
2020/07/22 22:43:09 DEBUG : fs cache: renaming cache item "pdrive:pop/sbi.pdf" to be canonical "pdrive:pop"
2020/07/22 22:43:10 DEBUG : Google drive root 'pop': attempting to share single file 'sbi.pdf'
2020/07/22 22:43:11 DEBUG : 6 go routines active
2020/07/22 22:43:11 Failed to link: googleapi: Error 403: The user does not have sufficient permissions for this file., insufficientFilePermissions
And that's the same user logged in as you are using with rclone?
If so, that should work. If not, you got something else going on and you may want to check with their support and see why you have a permissions issue.