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

This widget could not be displayed.

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 Sign up to answer
Community showcase
Posted Tuesday 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...

204 views 1 3
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