session.getCommonUserName returns server name

Domino 8.5.2 server on an xpage, session.GetCommonUserName() returns my server name, but

@Name(“[CN]”, @UserName());

returns my name. In each case, I’m authenticated with the Domino Server. Also, session.getEffectiveUserName() returns my name in full canonical format.

Can someone explain?

Why does session.GetCommonUserName not return my name? Isn’t it supposed to?

Subject: oddly named propperties

session.UserName property In designer help Read-only. The current user’s name.

-For a script running on a workstation, this is the name of the current user.

-For a script running on a server, this is the name of the server.

Designer help for session.effectiveusername

For a program running on:

-A workstation, this is the name of the current user.

-A server, the identity of the person under whose identity the program is running.

A little confusing :frowning: