Returns the user id of currently logged in user, optionally including the domain name.

XL3Username( Domain )

ParameterDescription
DomainBoolean value, pass True to return the domain as part of the username: DOMAIN\USER (optional)