title: User Impersonation using Web API
body: <p>How can I retrieve records behalf of another user.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>Xrm.WebApi.retrieveMultipleRecords("account", "?$select=name&amp;$top=3").then(
      function success(result) {
          for (var i = 0; i &lt; result.entities.length; i++) {
              console.log(result.entities[i]);
          }                    
          // perform additional operations on retrieved records
      },
      function (error) {
          console.log(error.message);
          // handle error conditions
      }
  );</code></pre>
  </div>
  </div>
  </p>