The j2eeLib.getRemoteUser() system function returns the user's login ID. If no J2EE authentication is in use, this function returns an empty string.
The function is available only in JSF handlers.
j2eeLib.getRemoteUser() returns (userID STRING)