I've noticed that Google spreadsheet* custom menus (see code below) are not displayed for anonymous users i.e. users who access the spreadsheet directly from the URL (Link to share); you need to sign first.
*The spreadsheet is shared and the the permissions are "Anyone with the link can edit".
Is this the expected behaviour?
Is there any workaround to make custom menus available to users without having to sign-in first?
Code (from Google)**:
function myOnOpen() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var menuEntries = [ {name: "Say Hi", functionName: "sayHi"},
{name: "Say Hello", functionName: "sayHello"} ];
ss.addMenu("Tutorial", menuEntries);
}
function sayHi() {
Browser.msgBox("Hi");
}
function sayHello() {
Browser.msgBox("Hello");
}
**The onOpen function has been renamed myOnOpen and is associated to an installable trigger. I've verified that it runs in the context of the spreadsheet owner.
TIA,
Olivier