The Microsoft Graph API allows you to update profile photos for various entities such as users, groups, teams, and contacts. However, it does not directly support batch operations for updating profile photos. You would need to make individual requests for each entity whose photo you want to update.
Update a user's profile photo:
PUT https://graph.microsoft.com/v1.0/me/photo/$value
Content-type: image/jpeg
Binary data for the image
In the above request, replace me
with the id
or userPrincipalName
of the user whose photo you want to update. The binary data for the image should be included in the body of the request.
For more details, you can refer to: https://learn.microsoft.com/en-us/graph/api/profilephoto-update?view=graph-rest-1.0&tabs=http#example-1-update-the-photo-of-a-user
Thanks,
Prasad Das
*************************************************************************
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.