Hello @Diksha Yadav ,
Thank you for contacting Microsoft Support!
To retrieve the display picture of an Outlook user using their email ID via the Microsoft Graph API, you can use the following endpoint:
GET /users/{userPrincipalName}/photo/$value
This request will return the user’s profile picture if they have set one. However, as you mentioned, if the user has not set a profile picture, this request will not return the default placeholder image.
Unfortunately, there is no direct API endpoint in Microsoft Graph that returns the default placeholder image if the user has not set a profile picture. The placeholder image is typically handled by the client application (like Outlook) and is not stored or managed by the Graph API.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.