In my application, I want to use Google Drive API with limited scope, namely drive.file.
NB Application is using OAuth2 authorization flow for limited devices.
However, with this scope API doesn't find files that i've manually created using Google Drive web logged in with the same account.
Moreover, if i manually add files (or other directories) into directory created by app, API still doesn't find them.
Is there a way to accomplish that using only limited scopes?
UPD151122 Link to a similar request in Google issue tracker
UPD101122 While going through Google app verification process, i've found out that Limited devices are allowed to use only few scopes and drive.readonly is not there.
The OAuth 2.0 flow for devices is supported only for the following scopes:
OpenID Connect,Google Sign-In
openid
profileDrive API
https://www.googleapis.com/auth/drive.appdata
https://www.googleapis.com/auth/drive.fileYouTube API
https://www.googleapis.com/auth/youtube https://www.googleapis.com/auth/youtube.readonly
A workaround is to use OAuth2 flow for webservice and host own service for OAuth2 authorization for limited devices... On the other hand, there are multiple cloud services that have implemented OAuth2 flow for devices and IMHO have a more reasonable scope of permissions.
UPD291022 To compare with, i've checked Dropbox API. It has the same scope feature with multiple permissions, but contrary to Google Drive API Dropbox API sees resources in app folder created manually by the same account. I hope, that's deliberate solution and wouldn't be changed.
I haven't found solution and similar tasks in API docs, so i suppose such scenario is not covered there.
There are mentions on the web that directory can be shared with app, yet i haven't found how to do that.
Previous answers here mention use of drive.metadata, but still this scope is sensitive and should be verified, thus doesn't help much.
I've tried to use drive.readonly scope, but it requires app verification, too.
Query on Google Drive API page works as expected, yet it asks to provide sensitive permissions.
I expect that files created by the same account via api or google drive web should be accessible from api even with limited permissions.
I expect that everything placed/created manually into directory that was created by app should be always accessible by app (at least for reading/downloading/uploading).