title: Running a google script from within a spreadsheet, but as a different user?
body: <p>I have a spreadsheet which I want only to be modifiable when the user is using custom menu functions (using the .addMenu function). If I set the sheet's sharing permissions so that only I can edit, but everyone else can view, the custom menu is greyed out for anyone logging in. </p>
  
  <p>I tried to work around this by giving the users access rights to the spreadsheet, but then protecting each sheet but the same issue occurs.</p>
  
  <p>Basically I want the user to be able to add data to the spreadsheet but only when using the custom functions. For example when one of my employees wants to place a new order, he must get authorisation from the Chief Accountant to do so. I have made it so that this order request is entered into a form by the user, which then populates the spreadsheet and alerts via email the accountant that there is a new order pending approval. I want the accountant to then open the sheet, and use the menu item 'approve/deny', which will mark the approval column of the specific request as 'approved/denied'. I do NOT want him to be able to edit this column manually.</p>
  
  <p>Basically I think I need the script to be able to be called by the user, but run as myself. Is this possible?</p>
  
  <p>Thanks for any assistance.</p>