Get Email address of whom run a script

Here is how to get an email of whom run a script.

Source Code

function myFunction(){
  var email = Session.getActiveUser().getEmail();
  Browser.msgBox(email);
}

Format

Session.getActiveUser().getEmail()

Return

User object

Note

If the email of whom run a script is different from the owner’s email, a script cannot be run.

1 thought on “Get Email address of whom run a script”

Leave a Comment