SOLVED

Possible to set user profile photos with API?

%3CLINGO-SUB%20id%3D%22lingo-sub-400667%22%20slang%3D%22en-US%22%3EPossible%20to%20set%20user%20profile%20photos%20with%20API%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-400667%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20to%20know%20if%20it's%20possible%20to%20set%20the%20Yammer%20user%20profile%20photos%20i.e.%20mugshots%20via%20the%20API.%20So%20far%20I%20have%20found%20other%20users%20on%20the%20internet%20asking%20this%20question%20a%20couple%20of%20years%20back%20but%20with%20no%20solution.%3C%2FP%3E%3CP%3EI%20have%20found%20a%20way%20to%20download%20them%20as%20per%20%3CA%20href%3D%22https%3A%2F%2Flazyadmin.nl%2Fit%2Fexport-yammer-user-profile-photos-with-powershell%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ethis%3C%2FA%3E%20helpful%20blog%20post%20but%20I%20have%20no%20idea%20how%20to%20construct%20the%20body%20for%20a%20POST%20operation.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20pointers%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-400667%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Emugshots%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EYammer%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-401596%22%20slang%3D%22en-US%22%3ERe%3A%20Possible%20to%20set%20user%20profile%20photos%20with%20API%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-401596%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F104%22%20target%3D%22_blank%22%3E%40Kevin%20Crossman%3C%2FA%3E%26nbsp%3BThanks%20and%20good%20idea.%20Unfortunately%2C%20this%20won't%20work%20for%20as%20as%20we%20don't%20use%20Exchange%20Online.%20It's%20documented%20that%20EXO%20is%20required%20for%20profile%20photos%20to%20flow%20into%20Yammer.%20To%20my%20knowledge%2C%20apart%20from%20manually%20updating%20them%2C%20there's%20no%20way%20to%20change%20them%20hence%20why%20I%20was%20hoping%20for%20the%20Yammer%20API.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-401592%22%20slang%3D%22en-US%22%3ERe%3A%20Possible%20to%20set%20user%20profile%20photos%20with%20API%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-401592%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F169605%22%20target%3D%22_blank%22%3E%40Christopher%20Hoard%3C%2FA%3E%26nbsp%3BThanks%20as%20always%20Chris.%20I%20voted%20for%20this.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-401117%22%20slang%3D%22en-US%22%3ERe%3A%20Possible%20to%20set%20user%20profile%20photos%20with%20API%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-401117%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F37813%22%20target%3D%22_blank%22%3E%40Florian%20Hein%3C%2FA%3E%20It's%20not%20my%20area%20of%20expertise%2C%20but%20you%20should%20be%20able%20to%20set%20the%20profile%20photo%20in%20Azure%20AD%20via%20programmatic%20means%2C%20and%20then%20that%20photo%20should%20flow%20down%20to%20Yammer.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-400675%22%20slang%3D%22en-US%22%3ERe%3A%20Possible%20to%20set%20user%20profile%20photos%20with%20API%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-400675%22%20slang%3D%22en-US%22%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F37813%22%20target%3D%22_blank%22%3E%40Florian%20Hein%3C%2FA%3E%2C%3CBR%20%2F%3E%3CBR%20%2F%3EAFAIK%2C%20this%20feature%20does%20still%20not%20exist%2C%20or%20isn't%20supported.%3CBR%20%2F%3E%3CBR%20%2F%3EOn%20the%20Yammer%20Uservoice%20there%20are%20uservoices%20as%20recent%20as%20January%20asking%20for%20photos%20to%20be%20programmatically%20managed%2Fupdated%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fyammer.uservoice.com%2Fforums%2F399627-yammer%2Fsuggestions%2F36460357-admin-to-manage-user-yammer-profile-photo%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fyammer.uservoice.com%2Fforums%2F399627-yammer%2Fsuggestions%2F36460357-admin-to-manage-user-yammer-profile-photo%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EI%20would%20raise%20this%20one%20to%20Microsoft%20Support%20for%20confirmation%3A%20I%20would%20expect%20the%20same%20response%20as%20back%20in%202016.%3CBR%20%2F%3E%3CBR%20%2F%3EHope%20that%20answers%20your%20question.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%2C%20Chris%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
Regular Contributor

Hi,

 

I would like to know if it's possible to set the Yammer user profile photos i.e. mugshots via the API. So far I have found other users on the internet asking this question a couple of years back but with no solution.

I have found a way to download them as per this helpful blog post but I have no idea how to construct the body for a POST operation.

 

Any pointers?

 

Thanks!

4 Replies
best response confirmed by Florian Hein (Regular Contributor)
Solution
Hi @Florian Hein,

AFAIK, this feature does still not exist, or isn't supported.

On the Yammer Uservoice there are uservoices as recent as January asking for photos to be programmatically managed/updated

https://yammer.uservoice.com/forums/399627-yammer/suggestions/36460357-admin-to-manage-user-yammer-p...

I would raise this one to Microsoft Support for confirmation: I would expect the same response as back in 2016.

Hope that answers your question.

Best, Chris

@Florian Hein It's not my area of expertise, but you should be able to set the profile photo in Azure AD via programmatic means, and then that photo should flow down to Yammer.

@Christopher Hoard Thanks as always Chris. I voted for this.

@Kevin Crossman Thanks and good idea. Unfortunately, this won't work for as as we don't use Exchange Online. It's documented that EXO is required for profile photos to flow into Yammer. To my knowledge, apart from manually updating them, there's no way to change them hence why I was hoping for the Yammer API.