Yes, you can fetch it via the Graph API? https://learn.microsoft.com/en-us/graph/api/profilephoto-get?view=graph-rest-1.0
Also via PowerShell and the Get-AzureADUserThumbnailPhoto cmdlet, or Get-UserPhoto if you are using Exchange Online.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am using Microsoft Graph API to get data and also using "https://graph.microsoft.com/beta/me/" API to get further data. But is there anyway I can fetch user's profile picture from any endpoint?
Yes, you can fetch it via the Graph API? https://learn.microsoft.com/en-us/graph/api/profilephoto-get?view=graph-rest-1.0
Also via PowerShell and the Get-AzureADUserThumbnailPhoto cmdlet, or Get-UserPhoto if you are using Exchange Online.
@Narayan, Sachindra , you can use the following Graph API to pull the profile picture for yourself or for any other user:
For any User: GET /users/{id | userPrincipalName}/photo
For the user account under whose context they have fetched the token: GET https://graph.microsoft.com/v1.0/me/photo/$value
Please refer to the screenshot below:
You might would like to take a look at the following Graph API documentation which might solve the purpose: https://learn.microsoft.com/en-us/graph/api/profilephoto-get?view=graph-rest-1.0
Hope this helps.
Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.