You do not have permission to call showSidebar
See original GitHub issueTo allow this add the next scope to appsscript.json
{
"oauthScopes": [
"https://www.googleapis.com/auth/script.container.ui"
]
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Error "You do not have permission to call showSidebar" in ...
A short description of the issue: Until this week you can show the sidebar on document open if no extra permissions are needed,...
Read more >You do not have permission to call showModalDialog
Open any sheet in Google Drive, and get the Workforce Dimensions Admin add-on. Choose "Generate settings file" and get the error message "You...
Read more >Authorization Scopes | Apps Script - Google Developers
Apps Script automatically determines what scopes a script needs by scanning its code for function calls that require them. For most scripts this ......
Read more >You do not have permission to call showmodaldialog.
It's work fine, modal dialog pops up. But if i log in with another account, that have permission to edit, trigger throws error:...
Read more >Dialogs after Edit : r/GoogleAppsScript - Reddit
I would like to show a dialog if a user inputs something "not allowed" ... Execution failed: You do not have permission to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Never mind… The problem is
onOpen()
. I apparently can’t show any kind of Ui without user interaction: https://issuetracker.google.com/issues/69238694#comment7Sure. I appreciate you taking a look.
It works if I run the function from the script editor, but not if I run it from the
onOpen()
handler.Here’s the error message in the StackDriver Logging:
Here’s some very basic sample code recreating the problem:
and my appsscript.json:
And the spreadsheet this is bound to is here