raph.users.getById(&quot;{id}&quot;);

// this only applies to the &quot;user&quot; instance now
const userInfoFromBeta = user.using(Endpoint(&quot;beta&quot;))();
</code></pre>
<p>Finally, if you always want to make your requests to the beta end point (as an example) it is more efficient to set it in the graphfi factory.</p>
<pre><code class="language-TypeScript">import { graphfi } from &quot;@pnp/graph&quot;;

const beta = graphfi(&quot;https://graph.microsoft.com/beta&quot;);
</code></pre>
<h2 id="graphb