How to Change email domain in jira

we want to changes all JIRA User email  domain with new domain.

example : previous mail address

                new mail address

All JIRA Users are configured through the LDAP..


2 answers

1 accepted

This widget could not be displayed.


We were not configured any LDAP server, crowd or other JIRA server with JIRA .

All users configured through JIRA  Internal directory only.

we are done this through the database, below  are the SQL queries

1.SELECT id FROM cwd_directory WHERE impl_class = '';

2.UPDATE cwd_user SET email_address = replace(email_address,'<PreviousDomain>','<NewDomain>') WHERE directory_id = <ID from step 2>;

3.  UPDATE cwd_user SET lower_email_address = replace(lower_email_address,'<PreviousDomain>','<NewDomain>') WHERE directory_id = <ID from step 2>;

This widget could not be displayed.

I assume you run JIRA on Linux.

  • Shut down jira.
  • Dump database to a file named your.database.dump.sql
  • do this:
cat your.database.dump.sql | sed 's/@abc\.com/@xyz\.com/g' &gt; new.database.dump.sql
  • import the database again
  • start up Jira, reindex it.

Before doing this on production, make sure you have done it on a test instance and tested everything (like that you have equally many issues assigned, and so forth.

I have merged 4 AD domains into 1 AD domain once using this technique, so know it works, but testing it will make sure you don't run into anything i did not.

Good luck!

Hi @Jonas Andersson


First of all thanks for ur

Might be this answer is correct as u assumes JIRA is running on Linux.

but our JIRA is running on Windows, for this what changes we need to do??  


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

83 views 0 1
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