m &quot;@pnp/graph&quot;;
import &quot;@pnp/graph/users&quot;;

// this.context represents the context object within an SPFx webpart, application customizer, or ACE.
const graph = graphfi(...).using(SPFx(this.context));

await graph.users();
</code></pre>
<p>Note that both the sp and graph libraries export an SPFx behavior. They are unique to their respective libraries and cannot be shared, i.e. you can't use the graph SPFx to setup sp and vice-versa.</p>
<pre><code class="language-TypeScript">import { Grap