Permissions for Google Drive SDK by file / folder

We are creating a desktop application that connects to Google Drive and performs some processing of images selected by the user. Please note that the images are stored there by any means (say, the user uploaded them using the Google Desktop tool for synchronization on the desktop).

In this https://developers.google.com/drive/apps_overview application can request permissions for files created by the Drive application, or for all files.

It seems that if you create an application for the web Google Drive, the user will have the choice of granting permissions in file by file.

However, we would like it if the user granted permissions to access our Google Drive desktop application, so our software can only see folders / files explicitly provided by users to our application.

Otherwise, we need access to all of their files, and this is a kind of security problem for the user (if they have all kinds of files, some of them may even be sensitive, why will they give us access to this if we work only with a subset) .

Note: in my testing, I use OAuth 2 and it works fine. We just have to ask for full permissions. We use .NET, not what matters.

Thanks.

+6
source share
1 answer

As you mentioned, permission for each folder would be ideal for you. We are aware of this feature and are planning it in a future release. Some other interesting areas will only have access to certain types of files. All this, unfortunately, is not yet available, and at the same time, you are stuck in using the full access area (or the read-only area if you do not need to edit files) if you are creating a desktop application.

+5
source

Source: https://habr.com/ru/post/920279/


All Articles