Google Drive API, scope issue

733 views
Skip to first unread message

Sayan Nanda

unread,
Jul 25, 2018, 6:05:03 PM7/25/18
to Google Cloud Developers
Hi,
I am trying to download files which have been selected by a user using the drive API. The user selects a folder and I download all the files within that folder. This is working fine when I use the drive scope but I am trying to do the same with a drive.file scope. The problem arises because I am not able to access any of the files within that folder. Is there any way I can work around the problem? Right now I am running a list command and I obtain all the files whose parents match with the folder which the user selected.
Thanks,
Sayan

Kenworth (Google Cloud Platform)

unread,
Jul 26, 2018, 2:05:44 PM7/26/18
to Google Cloud Developers
For Google Drive API, you can contact their support page here.

Rohit Kumar

unread,
Jul 26, 2018, 6:33:27 PM7/26/18
to Google Cloud Developers
The drive.file scope specifically states 'View and manage Google Drive files and folders that you have opened or created with this app'. You won't be able to see any objects with that scope unless they belong to the application that created them in the first place. Have a look here: https://developers.google.com/identity/protocols/googlescopes#drivev3
Reply all
Reply to author
Forward
0 new messages