Reputation: 23
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.
Upvotes: 2
Views: 598
Reputation: 421
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.
Upvotes: 2