title: Dynamics CRM 2016 (On-Premise) calling user context
body: <p>I'm working on a custom plug-in (non-sandboxed) in a CRM2016 on-prem to interface with an internal webAPI.</p>
  
  <p>When I run this piece of code, it is returning the CRM App Pool user and not my user name:</p>
  
  <pre><code>(System.Security.Principal.WindowsIdentity)HttpContext.Current.User.Identity;
  </code></pre>
  
  <p>Is this expected and normal?  If it is, how do you impersonate the calling user for external calls.</p>
  
  <p>Thanks.</p>