Why does my apps script deployed as API executable return Permission Denied?

Make sure the app script is associated with correct dev console project.

The script should be associated with the dev console project id that corresponds with OAuth 2.0 client ID used (this dev console project should also have “Apps Script Execution API” enabled).

To change the developer console project for an app script select the following menu item: Resources > Developer Console Project…

On this screen enter the project number for your dev console.

Leave a Comment