Wim den Herder, , . script . , script . , :
When the user uses the sheet for the first time, when he / she has to click a button and run this:
function identifyUser(){
var input = Browser.inputBox('Enter User Id which will be used to save user to events (run once)');
PropertiesService.getUserProperties().setProperty("ID", input);
}
This saves user input to the user property. It can be read later at any time using this code:
var user = PropertiesService.getUserProperties (). getProperty ("ID");
source
share