0

I have created one AAD application with below configuration and trying to access the Graph APIs added in the AAD application using SPFx

enter image description here

1

enter image description here

enter image description here

SPFx configuration and code:

enter image description here

enter image description here

Error:

enter image description here

Please suggest if I am missing any step? or Do I need to use MSAL in SPFx to make it work?

0

Not sure if the scope is right.You could take a reference to this blog to call Graph API in SPFX.

Create SPFx web part to get user details using Graph API

And official demo:

Use the MSGraphClient to connect to Microsoft Graph

1
  • Yes I can make call to Graph API similar to blog post. but my ultimate goal is to call MS Flow related functionality and to API to access all the site collections with the help of AAD application and I am first trying to access Graph API using AAd Application just to see how the API calls will work using AAD application. Also scope name can be anything while creating AAD application. IMO. – Harminder Singh Mar 26 at 8:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.