Currently we only have the scope https://www.googleapis.com/auth/drive.readonly but we want to be able to write and update files to google drive as well. Reading the documentation they state that https://www.googleapis.com/auth/drive.file is enough to create and update files. But before we apply to this I want to make sure this scope is enough.
Asked
Active
Viewed 512 times
1 Answers
1
As written in the Documentation https://www.googleapis.com/auth/drive.file
will only allow you access to files created or opened by the app(you).
https://www.googleapis.com/auth/drive
allows you to access all of a user's files, excluding the Application Data folder.
So if you want to access all the user files https://www.googleapis.com/auth/drive
else https://www.googleapis.com/auth/drive.file
is enough to create and update the files.

pa1.Shetty
- 401
- 3
- 16
-
2hello, I am not very clear with how to define this 'opened'. If the user created a doc on GoogleDrive webpage, is there a way to open it on my app first and then only use `https://www.googleapis.com/auth/drive.file` to change permission? – 聂小涛 Apr 02 '20 at 03:43