How is user mapped to the avatar

As an administrator of our jira installation i wan't to manage the avatars for our employees.

Is there a way to edit the content of the sql database so i can maintain the avatars?

I see the table 'avatar' and there is a filename mapped to the folder '..\Application Data\JIRA\data\avatars\'.

But how is the record in this avatar table related to the user in table 'cwd_user'? I do not see any id that is the reference. Or is it the avatar.owner column that reference the cwd_user.user_name column?

Than the question is, is Jira using the latest Avatar record? Because i see mulitple records in avatar table for one user.

And can i just add a record in the avatar table with some id? Or do i have to use a particular id?

2 answers

This widget could not be displayed.

As for JIRA 6.3.* there are 4 tables: app_user, propertyentry, propertynumber, avatar

To display current avatars I use the following SQL query:

SELECT u.lower_user_name,a.*
  FROM app_user as u left join propertyentry as pe 
		left join propertynumber as pn on
			left join avatar as a on
	entity_name = 'ApplicationUser'  and property_key='';



This widget could not be displayed.
Janet Albion Atlassian Team Mar 25, 2013

There are 4 tables involved here:

  • avatar stored the avatar list
  • propertyentry stored the association between user and the avatar. using "" to search for the mapping
  • propertynumber stored the current avatar used
  • external_entities stored the username

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

225 views 3 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you