문제

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

Thanks.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top