Get User Profile & Photo
Gets a user's profile and photo in Microsoft Graph using functions, and displays the profile and photo on a using the image and entity component.
Resource links:
Required OAuth scope (least to most privilege):
User.Read User.ReadWrite User.ReadBasic.All User.Read.All User.ReadWrite.All Directory.Read.All Directory.ReadWrite.All
When using the code and samples in this topic, remember that they are designed to function as part of a comprehensive solution. To fully benefit from the intended functionality and ensure compatibility, it is recommended that you use the entire solution rather than selecting individual components in isolation. Alternatively, you can use these samples as a guide to understand the underlying concepts and MS Graph API, which can help you integrate similar solutions into your projects more effectively. The entire MS Graph solution is available on GitHub.
MS Graph User functions in GitHub.
MS Graph User in GitHub.