Forum Discussion
1 Reply
Sort By
Hi Gurdip,
you can either use the Build-In "Split domain from full Username" option on the VPE Login Page item, or use the custom variable assign action below, directly after your Login Page.
Custom Variable:
session.logon.last.username
Custom Expression:
set username [string tolower [lindex [split [mcget {session.logon.last.username}] "@"] 0]] ; if { [llength [split $username "\\"]] == 1 } then { username does not contain NT-Domain notation } else { set username [lindex [split $username "\\"] 1] ; } ; return $username ;
Note: Personally I use the variable assign approach, since it additionally formats the username tolower and also strips DOMAIN\upn@domain.de notations.
Cheers, Kai