don’t know if this is a true problem or rather a question:
in postSaveDocument event of an XPage datasource I’m trying to retrieve the name of the user who as just submitted the page. I tried session.getUserName() as well as session.getEffectiveUserName():
usrName = session.getUserName();
print(usrName);
the server console always returns the server’s own name, never mine (yes, I’m absolutely sure that I’m not logged in as the server!).
I know how to accomplish something like this using standard Domino web agents but I don’t have an idea what’s going wrong here.
Question 1: can someone please confirm / deny this?
Question 2: how can I truly return the submitter’s name?
getUsername() returns the name of the current ID being used, which is the server ID when running inside Domino. I hate this behavior, but changing it would break existing apps. So we added getEffectiveUser(0 to get the web user name.