Forum Discussion
How to split specific character from Widows AD Name
- 4 years ago
Here you go:
UNam =
VAR Finddelimiter =
FIND ( "@", USERPRINCIPALNAME (), 1 )
VAR DomainName =
MID ( USERPRINCIPALNAME (), 1, Finddelimiter - 1 )
VAR FindDelimiterDot =
FIND ( ".", DomainName, 1 )
VAR FirstName =
MID ( DomainName, 1, FindDelimiterDot - 1 )
VAR LastNameInitial =
MID ( DomainName, FindDelimiterDot + 1, 1 )
RETURN
UPPER ( LEFT ( FirstName, 1 ) )
& RIGHT ( FirstName, LEN ( FirstName ) - 1 ) & " "
& UPPER ( LastNameInitial )
If you have your Windows AD Name in any column then you can try to create a new calculated column like this:
- saivina29204 years ago
Post Prodigy
Thanks for your quick response.
Is it possible to directly read from windows AD name and split it.?
- saivina29204 years ago
Post Prodigy
Thanks for the guidance.
I want to read only specific name who has logging in to the system which means AD user name..
Now i am getting "ct1net\201980" from logging into the system.
Using this id, i want to get the name of the specific user....
How to do this...?