Can anyone share the experience for connecting jira to LDAP?

jira version: 5.1.8

Currently jira has internal user directory only, but confluence use external user management from jira.

Now we want to connect jira users to LDAP (for authentication only), but in our AD most of the user names are different from jira, what is the best way to do this task? I guess I need the scripts to move users from one user directory to the other, and also change the user IDs, can anyone share the scripts or any advise will be welcome. Thanks

1 answer

1 accepted

1 vote
Accepted answer

Hi Sherry,

Currently JIRA doesn't have a native function to perform username change, but there is already an improvement request to this feature and we have the information that it is going to be possible in version 6+ see here.

At this stage, there are some other possible methods to rename an user, but none of them are supported by Atlassian, since they are considered customizations. But, even so you may consider one of them:

  • There is a third-party plugin (Script Runner plugin) that has a built-in function to rename users without restarting or re-indexing the JIRA instance. Before proceeding with this, however, I'd advise you to read the full description of this script here: Rename a User ID:

    You do not need to restart or re-index. However, depending on how prolific the user to be renamed has been, this can make extensive modifications to the database. It's sensible to take a database backup first, to try to do this at a quiet time, and to test afterwards. You can log in as the user you have renamed using either of these plugins - one, two, and test.

  • You can also create an XML backup and execute a search and replace on it to change the username. This process is better described in this documentation.

I hope this information has helped.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Wednesday in Jira

Make your Atlassian Cloud products more secure: our NEW admin security guide

Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...

156 views 0 6
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