My apps scrip web app is deployed as "execute as me"; this is important, as I don't want users to have to authenticate and trust a script not to read their private Google data. Right now, users don't get any authentication message and I want to keep it that way.
I would like to grab the user's email address when they load the site, in order to personalize some of the content. Obviously I can't use Session.getActiveUser().getEmail(), as that returns my email every time (as it's running as me). Creating other web apps and using FetchUrl won't help, as at some point the user will have to authenticate, which I'm trying to avoid.
One fairly non-intrusive solution would be to get the user to enter their email address as a one-off action when they first try to use the part of site that I want to personalize. However, I would need to store that somewhere locally I guess.
So, just wondering if there are any possibilities to help me do this? e.g. can GAS use cookies or some other permanent(ish) local storage that the app could read the next time the user loads the page?
All my users are on the same domain (non-gmail).
Appreciate you listening. Thanks in advance!