How can I get all the user info, from a SPFX WebPart, using Microsoft Graph?
I need to call the API 'https://graph.microsoft.com/beta/me/' to get the user info from a SPFX WebPart.
I'm using SPFX with React
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
Since the GraphHttpClient provided with the SharePoint Framework is limited at the moment, you have to use ADAL JS instead. You can read more about the approach and it’s considerations at https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/guidance/call-microsoft-graph-from-your-web-part