Reputation: 1
I am using codename one to develop a mobile app (irrelevant to the issue). The mobile app needs the ability to write to a specific google sheet owned by me, and read from another also owned by me. It can through REST. The issue here is that it needs the spreadsheets scope to do so. I want for the only scope to be drive.file. Since the app only ever interacts with these two spreadsheets, both of which are owned by me, how can I explicitly allow the app to do this?
Upvotes: -1
Views: 32
Reputation: 1
Since drive.file scope only lets your app interact with files that have been created by the app or explicitly shared with the app, you need to manually share the two sheets with your app’s service account.
Go to Google Drive->Locate both spreadsheets->Share them with your app's service account email (found in the Google Cloud Console under IAM -> Service Accounts)->Grant Editor access for the sheet you want to write to and Viewer access for the one you want to read from
Upvotes: 0