Can we add email addresses for AD users using SQL into the JIRA database

We have some people in AD whose records are 'contacts' and not 'users', and there is no email associated to them for this reason in their JIRA user account.  If we were to add the email addresses directly into the JIRA db (by SQL) would they persist after the next AD sync (I am thinking the blank record in AD email address field might overwrite the manually entered data in the email address fields in JIRA).  Looking for advice on the best way to do this and want to make sure the data persists after re-indexing and/or a JIRA restart, and future AD Sync's.

1 answer

1 accepted

0 vote

Standard advice - never update an Atlassian application's database directly.  It will almost always go wrong.

In this case, it's a moderately simple update, and, although it will work if you follow the usual SQL path (Stop JIRA, back it up, run the SQL, start JIRA and re-index if you've touched index-related data), you are right about the next update.

JIRA just acts as a local cache when you have external directories.  Every update from AD is going to overwrite your local data, because it is just a cache.

You need to give these contacts email addresses in AD if you want them to have emails in JIRA.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

193 views 4 8
Read article

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