I created a Google doc template that uses Google script to add a menu option that runs onOpen(). The script works for my developer account, however, if I try to create a new file with the template outside of the account, the script doesn't run.
I have been pulling my hair out trying to get the script to run when other users access it. I'm sure it is something easy.
Thanks for any help.
Edit: Here is a code snippet of what I am trying to do:
var ui = DocumentApp.getUi();
function onOpen() {
ui.createMenu('Publish')
.addItem('Create Web file ', 'publishWebFile')
.addItem('Create Bureau file', 'publishBureauFile')
.addToUi();
}