Using LDAP in JIRA, when a user changes their name in LDAP, a new account is created in JIRA.

Greg Chandler March 29, 2012

Shouldn't the user's name in JIRA change to match the name in Active Directory?

1 answer

1 accepted

0 votes
Answer accepted
Aspect Infra Team
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 29, 2012

there is no way for JIRA to know this is a changed name ( id ) in LDAP and not a new one. For JIRA username ( login name ) is primary key. so if you change it JIRA thinks it's just another user.

but if you change in LDAP only fields that in JIRA configured as First, Last and Display names and preserv username - JIRA will show new name in issues

if you schange username in LDAP you need update JIRA DB by SQL querry replacing old username with a new one

AFAIK this is cwd_user table

Rumceisz May 31, 2012

Hi,

I have similar question: we use common usernames in LDAP and Jira. So the usernames are constant but in many cases the Last Name of the user changes and also his/her email address. Both can the user change in their Profile I know but many times they forget to update their personal details in Jira.

Do you know a feature which updates at least the email address?

Thanks in advance!
Rumi

Manse Wolken
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 9, 2012

You could try to user the scriptrunner plugin. I use it for changing loginnames "has a built in script for that task", but you would have to write your own script, for checking for LDAP changes...

Suggest an answer

Log in or Sign up to answer