I realise that via a browser this most likely is in breach of all kinds of security protocols and hence impossible, but what about from Perspective Workstation - is this possible now (or could it be in the future)?
In Vision Java I used to use:
from java.lang import System
System.getenv('USERNAME')
The reason I ask is that a customer is wanting to "permanently" keep users logged in that log into Perspective with the same username as they log into Windows with. We do this for Vision currently and they would like the same for Perspective.
Otherwise, we log them out after a period of time.
What about an AD user source? I have one setup that uses an AD user source, and when you log into perspective the user name is available through session properties. That assumes they log into their machines with the domain credentials as well though.