Gdrive error 403

What is the problem you are having with rclone?

Google drive showing error 403

Aug 25 13:30:00 hostname rclone[2341206]: Google drive root '': Change notify listener failure: googleapi: Error 403: The restrictToMyDrive parameter is only applicable for the 'drive' and 'photos' spaces., forbidden

Run the command 'rclone version' and share the full output of the command.

rclone v1.63.1
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 6.2.0-26-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.20.6
- go/linking: static
- go/tags: none

v1.63.1

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

just looking in the logs

The rclone config contents with secrets removed.

[googlemlzip]
type = drive
client_id = xxxxxxx
client_secret = xxxxxx
scope = drive.appfolder
root_folder_id = appDataFolder
token = {"access_token":"xxxxxx","token_type":"Bearer","refresh_token":"xxxxxx","expiry":"2023-08-25T14:00:58.595433996-05:00"}
team_drive =

A log from the command with the -vv flag

Aug 25 13:52:09 host rclone[1234]: Google drive root '': Change notify listener failure: googleapi: Error 403: The restrictToMyDrive parameter is only applicable for the 'drive' and 'photos' spaces., forbidden
Aug 25 13:52:24 host rclone[1234]: Google drive root '': Change notify listener failure: googleapi: Error 403: The restrictToMyDrive parameter is only applicable for the 'drive' and 'photos' spaces., forbidden
Aug 25 13:52:39 host rclone[1234]: Google drive root '': Change notify listener failure: googleapi: Error 403: The restrictToMyDrive parameter is only applicable for the 'drive' and 'photos' spaces., forbidden

Noted in the output, it's only for drive and photos. You have the app folder there.

Thanks for the reply. Not sure what I should put for the scope? this is for the drive so it should work?

Scopes are documented here:

The scope depends on what you want so I really can't answer for you. If you want to restrict access to only the app folder, you don't get changes.

Most people use 'drive' to give it access to all files.

drive.appfolder is what i want so that only the API can access and control the directory and files.

Everything is working but I keep seeing the 403 error in the logs. looks to have started back on July 5th and continued. before that, I did not see the line in the logs at all