• Resolved Rafa

    (@rafa410)


    Hi,

    Following this topic, I removed the https://www.googleapis.com/auth/drive.readonly scope using the updraft_googledrive_scope filter, 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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_scope filter to add or remove scopes. However, if you use the current version of UpdraftPlus, the drive.readonly , drive.file and userinfo.profile scopes 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.readonly scope 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 the updraft_googledrive_scope filter and leave only userinfo.profile and drive.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
    Anthon

    Thread Starter Rafa

    (@rafa410)

    Ok, thanks for the reply.

    Rafa

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.