title: How to get current Active Directory user in ASP.NET when IIS is running under a service account
body: <p>I need to get the name and email address of the user currently logged into Active Directory from a website that is using a service account as the application pool identity in IIS.  I've tried the following two methods but they return the name of the service account, not the actual user logged into the network (which makes sense).</p>
  
  <p>System.Security.Principal.WindowsIdentity.GetCurrent().Name</p>
  
  <p>UserPrincipal.Current.EmailAddress</p>
  
  <p>Does anyone know if this is possible? </p>