The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

REST API Endpoint: Updating user avatar/profile picture

Christian Steinert
January 10, 2018

Hello!

I'm looking for a REST Endpoint, that a custom client can use to update the users profile data and picture.

Thanks!

 

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Erik Johnson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 3, 2026

Necropost because searches brought me here for the same unresolved topic:  Atlassian Cloud user management for all the atlassian products can use this undocumented endpoint subject to change (2026):  A multipart form PUT to https://admin.atlassian.com/gateway/api/users/{userId}/manage/avatar.

 

Python snippet 

requests.put(f"https://admin.atlassian.com/gateway/api/users/{userId}/manage/avatar",files={"file":("blob",open("MySquarePhoto.jpg","rb"),"image/jpeg")})
0 votes
BKippelt
Contributor
February 28, 2018

The following REST calls may help you. These calls are private. I'll try them tomorrow, too. Let's see what happens. Or have you already solved it?

/rest/user-profile/1.0/avatar/uploadFallback
/rest/user-profile/1.0/{userKey}/avatar/default
/rest/user-profile/1.0/{userKey}/avatar/upload

David Yu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 24, 2018

Did this work for anyone? If so, what are the parameters?

munyiva ngea
July 26, 2018

Any help?

0 votes
Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
January 10, 2018

I don't think Confluence has a REST API endpoint for that yet, but you can use the XML-RPC/JSON-RPC API for that. There's a method called "addProfilePicture" that you can use: https://developer.atlassian.com/server/confluence/remote-confluence-methods/#user-management

Remember that for the RPC API you have to call the login method to get the token. If you are making the call from browser Javascript, though, this is unnecessary and the token will be filled in automatically.

If you're looking to do so in JIRA, it's a bit different and can be done via the REST API. This was the answer I used when I was trying to figure it out: https://community.atlassian.com/t5/Answers-Developer-Questions/Avatar-upload-with-Jira-5-REST-API/qaq-p/475376

Christian Steinert
January 10, 2018

Hey Stephen,

thanks alot! I'll try it out!

Greetings,

Christoph

David Yu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 24, 2018

Don't know if this bug still exists but the @mention photos will be missing if you upload via the old RPC API. A reindex will fix it, but not ideal if you're constantly updating profile pictures.

https://jira.atlassian.com/browse/CONFSERVER-35282

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events