I am using windows Authentication and accessing user name as.
IIdentity winId = HttpContext.Current.User.Identity; string name = winId.Name;
Cast it to the specific Identity, for example WindowsIdentity
WindowsIdentity