Can a API secured by Azure Active Directory be used in SPFx by external users?

%3CLINGO-SUB%20id%3D%22lingo-sub-145399%22%20slang%3D%22en-US%22%3ECan%20a%20API%20secured%20by%20Azure%20Active%20Directory%20be%20used%20in%20SPFx%20by%20external%20users%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-145399%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20exited%20to%20see%20that%20Azure%20AD%20secured%20web%20apis%20can%20be%20used%20from%20SPFx%20web%20parts%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fspfx%2Fweb-parts%2Fguidance%2Fconnect-to-api-secured-with-aad%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fspfx%2Fweb-parts%2Fguidance%2Fconnect-to-api-secured-with-aad%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhat%20is%20not%20clear%20is%20whether%20this%20will%20work%20with%20external%20users.%20Say%20I%20want%20to%20add%20a%20button%20(SPFx%20extension)%20to%20a%20list%20that%20calls%20a%20web%20api.%20Will%20it%20work%20if%20the%20current%20user%20is%20signed%20in%20with%20a%20Microsoft%20account%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

I am exited to see that Azure AD secured web apis can be used from SPFx web parts

https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/guidance/connect-to-api-secured-with-...

 

What is not clear is whether this will work with external users. Say I want to add a button (SPFx extension) to a list that calls a web api. Will it work if the current user is signed in with a Microsoft account?

0 Replies