To allow this add the next scope to `appsscript.json` ```json { "oauthScopes": [ "https://www.googleapis.com/auth/script.container.ui" ] } ```