I am trying to get the active user email so I can apply rules to each email. As I am doing this as an web app I am unsure how to get that info and paste it into a html page. I tried with this code and it works, but not as I want:
var app = UiApp.createApplication();
app.add(app.createLabel('Effective User: ' + Session.getEffectiveUser().getUserLoginId()));
return app;}
As I am unsure how to get it inside a HTML file i am asking for your help.