Cannot remove readonly permission for Google Drive
-
Hi,
Following this topic, I removed the
https://www.googleapis.com/auth/drive.readonlyscope using theupdraft_googledrive_scopefilter, but then when trying to authenticate to my Google Drive account I get the following error message:“””
An error (googledrive_insufficient_permissions) occurred in trying to connect with Google Drive.
Error details: In order to obtain a full access token for your future tasks, it is necessary to authorize with full permissions to access your Google Drive storage.
“””
Seems like the plugin requires the readonly permission for the whole GDrive account, even though in the source code it says that it is optional.
Could you take a look?
Thanks
-
Hi,
In the next release of UpdraftPlus, we’re going to implement Google granular consent where you can individually choose (by ticking check boxes) what scopes or permissions you want UpdraftPlus app to be granted. Currently, you need to use the
updraft_googledrive_scopefilter to add or remove scopes. However, if you use the current version of UpdraftPlus, thedrive.readonly,drive.fileanduserinfo.profilescopes are mandatory, we don’t recommend you remove these three scopes by using the filter but you’re allowed to add more scopes if needed (see https://developers.google.com/identity/protocols/oauth2/scopes#drive for more Google Drive scopes)The
drive.readonlyscope will allow UpdraftPlus to see and read all folders and/or files in your Google Drive but not to edit, delete or create new folders or files. If you remove this scope from theupdraft_googledrive_scopefilter and leave onlyuserinfo.profileanddrive.file, UpdraftPlus will not have the ability to read or recognize the existing folder you specified in the Google Drive storage setting on the plugin, therefore every time you perform backup UpdraftPlus will always create new one resulting in duplicate folders with a same name. This behavior applies to both UpdraftPlus and user’s custom Google app.
Thanks
AnthonOk, thanks for the reply.
Rafa
The topic ‘Cannot remove readonly permission for Google Drive’ is closed to new replies.