How to get profile pic using Microsoft Graph API?
We are integrating Microsoft Azure AD with our application. I am trying to get user profile pic using Microsoft Graph API ( https://graph.microsoft.com/v1.0/users/ {id | userPrincipalName}/photo/$value) . But its not working for me. I have given all permission required for this API in application but every time getting below response.
Is the Microsoft Graph API no longer available?
Additionally, any photos that may have been previously stored using the thumbnailPhoto property (using the Office 365 unified API preview, or the Azure AD Graph, or through AD Connect synchronization) are no longer accessible through the Microsoft Graph photo property of the user resource. For more details You could check official docs here
What are the permissions to access group photos?
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions. Note: There is currently a known issue with accessing group photos using application permissions. A photo size.
What do you need to know about Microsoft Graph?
Find the documentation, tools, and resources you need to start working with Microsoft Graph. Get a free sandbox, tools, and other resources you need to build solutions for the Microsoft 365 platform. Raise the bar for your app security – Get Microsoft 365 Certification
Where can I find Microsoft Graph version 1.0?
Namespace: microsoft.graph Get the specified profilePhoto or its metadata (profilePhoto properties). Note This operation in version 1.0 supports only a user’s work or school mailboxes and not personal mailboxes.
How to respond to changes in Microsoft Graph?
Respond to changes in Microsoft Graph data in real time. Reschedule a meeting based on responses, notify others when a file is modified, or continue a process after it’s been approved. Build solutions that target enterprise users in Azure and Microsoft 365, consumers on Office Online (Outlook.com and OneDrive.com), or both.