Scripts not working for anonymous users, Google spreadsheet

后端 未结 1 1909
遥遥无期
遥遥无期 2021-01-24 15:35

I am currently editing a Google spreadsheet that is set up for public editing by logged-in and anonymous users (I am not the owner). I have created a script within the spreadshe

相关标签:
1条回答
  • 2021-01-24 16:33

    The post you refer to has a clear answer : any call to spreadsheet service will require authorization to work. This implicitly excludes anonymous users. See Zig Mandel answer for explanation on how to solve that (reproduced below)

    The button will run under the users permission. If its anonymous it wont run if it needs any api permission (like reading the spreadsheet) since there is no user. For non anonymous users, you need to add a menu item that will trigger the google permission dialog (just do any dumb api call from it). After the user approves it will be able to click the image button

    0 讨论(0)
提交回复
热议问题