1
votes

So I was following this for trying out file transferring from folder to folder using Google Drive API. Then I hit a snag:

Insufficient Permission: Request had insufficient authentication scopes.

It seems that the scopes I defined were not the right ones: /drive.appdata & /drive.file. I wanted to try the /drive one, but that needs verification. Is there a way to bypass verification so I can test moving files without needing my app to be verified? Or is there another way to move files around in Google Drive without resorting to having your app verified? The account I am using for testing is disposable anyway.

1

1 Answers

1
votes

Insufficient Permission: Request had insufficient authentication scopes.

Note: this message has nothing to do with application verification.

This message means that the authentication credentials for the user you have logged in to do not contain the permissions that you need to do what it is you are trying to do.

Determine which method you are trying to call that is resulting in this message check the documentation to ensure that you are requesting the correct scopes. Then reauthenticate the user. You need to see a new consent screen popping up.

file.update for example requiters the following permissions.

enter image description here

Remember if you changed your code you need to force the user to reauthencate or your just running with the old scopes.