Retrieve email address from different OU than username

We have an unusual setup in our Active Directory where the user is kept in one OU with his corporate email address. His primary email (which is different from his corporate email) is stored in a different OU.

For example, their user credentials are in:


using this to get email gets the email address they are not supposed to use. We need to get that address from:


1 answer

Hi Michael, I don't see an option in JIRA to retrieve only the email address of an user from a different object in a different location in the LDAP.

One thing that you may consider if copy the real email from the OU=CONTACTS and paste it in a different attribute of the user object in OU=Users. For example copy it to the description attribute.

Then edit your LDAP configuration in JIRA to use the description attribute, instead of the current one.


That's a good suggestion and one I'm considering, but doing so requires cooperation from another deparment which I may or may not get. It also requires them to maintain that second address in two locations... an easy thing to miss.

Hi Michael, I understand your concern, but I found in an online article that it could be done via powershell. You may like to see it in this link.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,645 views 18 21
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