Reputation: 147
For one of the application created using Google Apps Script, some scopes are automatically added as follows in my app:
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/script.external_request
https://www.googleapis.com/auth/script.send_mail
https://www.googleapis.com/auth/spreadsheets
I've followed all the steps for OAuth Client Verification according to this documentation. But still, my verification process is pending and support team said that I need to add https://www.googleapis.com/auth/drive.file scope to my project.
Anybody know how to add/enable https://www.googleapis.com/auth/drive.file scope in the existing project.
Upvotes: 2
Views: 9803
Reputation: 116868
When you authenticate your application you should request the additional scope
example
{
...
"oauthScopes": [
" https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/userinfo.email"
],
}
check the documentation here
Upvotes: 7