The idea is that together with the data being saved when clicking on a save button, the user doing that gets its email recorded as a variable, for instance. This is a bounded script. This is how I'm trying it, but it return null
Client-side
const user = google.script.run.withSuccessHandler(function(user) {
return user;
}).getUser();
console.log('User: ' + user)
Server-side, which works ok
function getUser(){
const user = Session.getActiveUser().getEmail();
console.log('Active User: ' + user)
return user;
}
Appreciate your help!