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:

OU=Users,OU=DEPARTMENT,OU=DIVISION,OU=CORP,DC=ds,DC=company,DC=com

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

OU=CONTACTS,OU=MAIL ADDRESSES,OU=CORP,DC=ds,DC=company,DC=com

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.

Cheers

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.

Cheers

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,001 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot