Granular OAuth consent in Goog... Note

Granular OAuth consent in Google Apps Editor Add-ons

Google is enhancing the OAuth consent screen for Apps Script. Previously, users could only grant or deny all requested scopes for a script. Now, users can selectively authorize individual scopes, offering greater control over data access. This granular consent screen, initially launched for Apps Script IDE and unpublished Editor Add-ons, is expanding to published Editor add-ons. When users authorize published Editor add-ons powered by Apps Script, they will also be able to provide partial OAuth consent. This new flow allows users to choose which specific permissions they grant to add-ons. Developers of Editor add-ons should familiarize themselves with the ScriptApp and AuthorizationInfo classes. These classes enable programmatic interaction with granted scopes, allowing developers to implement safeguards. For example, scripts can be halted if not all necessary scopes are authorized. Existing scope grants will remain unaffected by this update. The new consent screen will only apply to new OAuth scope grants. This feature will be available to all Google Workspace customers and Workspace Individual Subscribers starting August 19, 2025.