I have a Google Script that executes as me. In the script, I want to know the user's email. So I refer to the email of the user accessing my application as Session.getActiveUser().getEmail()
That's not working out at all. Google Script is giving an error, saying Session.getActiveUser().getEmail() is NULL.
When I manually enter a dummy email instead of Session.getActiveUser().getEmail(), the code works perfectly
HEEEEELP
PS: The app MUST execute as me, because it needs to access my contacts.