Fewer permission for Google Sheets API

Viewed 34

In my Chrome extension's manifest.json, I have this entry:

"oauth2": {
    "client_id": "someLongIdHere.apps.googleusercontent.com",
    "scopes": ["https://www.googleapis.com/auth/spreadsheets"]
}

And I'm using this in background.js

    chrome.identity.getAuthToken({ interactive: true }, getToken);

Everything is working, but I need to make the extension to ask for fewer permissions. These permissions might scare away potential users:

enter image description here

In particular, I just want it to ask for these permissions:

  • See and edit your spreadsheets
  • Create new spreadsheets

My google-fu is failing, can't find how to restrict Google API to fewer permissions

1 Answers
Related