Forums

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

Want to know how to recover user profile picture

Rinku Saha March 20, 2014

Hi

while running a query i am able to find the "attachment" table where this is store.

i want to is the if this content type is "image/pjpeg" how it is diaplying on confluence page. basicaly i want to know where i can get this picture on confluence. there should be something like space id. please let me know.

Thanks'

Rinku

2 answers

0 votes
Rinku Saha April 8, 2014

Hi Stephen,

Sorry for the late response, i was on vecation.

actually my requirement is, on confluence some user update their profile picture but for others it display the default picture. now, we are planning to update all the profile picture. how can we do that?

Thanks'

Rinku

0 votes
NotTheRealStephenSifersNOPENOPENOPENOPE
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 Leaders.
March 26, 2014

I found myself trying to find user avatars as well, I was able to use the following macro to place a users login avatar on pages:

#set( $profile_pic = $userAccessor.getUserProfilePicture( $req.userPrincipal.name ) )
#set( $pic_src = $profile_pic.getDownloadPath() )
<img src="$pic_src" alt="Your profile picture" />

Now when I need to have an avatar loaded on a page, I just add the macro.

Not sure if this answers your question though.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events