Lock script execution on a document when script is deployed as web app
问题 My Google Apps Script is deployed as web app and can be accessed by any user. Its functionality is to open and change the text in that document. I send the script a document ID as a query parameters like so: https://script.google.com/a/macros/s/AKfycbzCP...TnwHUbXxzDM/exec?docId=1_cMN0nuJadBw6QVjKtdEA6eXhE8ubIoxIJai1ticxnE` Web app opens the document and changes the text in the document. function doGet(e){ var params=e.parameters; var doc = DocumentApp.openById(params['docId']); ... /* change