Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Hi,

With this piece of code
System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString();
I can get the Windows User ID. But not the Firstname and Lastname of an person. For example, companies gives an employee a Windows ID with login name WS0046P, so if I use my line of code I will get the Windows ID.

I just want to receive the Firstname and Lastname of a Windows User

Thanks in advance
Posted

1 solution

Tried looking at this one yet?

Windows Authentication get User Full Name[^]
 
Share this answer
 
Comments
Member 7762422 5-Apr-11 4:38am    
Thanks, probably I search in the wrong direction. It's working thanks!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900