Get NT User ID in SharePoint
2 answers
Inside SharePoint, you can retrieve the user's Active Directory information (including display name and email address) using SPUtility.ResolveWindowsPrincipal:
For example:
SPPrincipalInfo pi = SPUtility.ResolveWindowsPrincipal(SPContext.Current.Site.WebApplication, "MYDOMAIN\\myusername", SPPrincipalType.All, false);
Outside of SharePoint, you want to look at the System.DirectoryServices namespace.
+1
source to share