Anyone converted users from one LDAP directory to a new directory Edited

We have multiple domains in our business, One that we have used for LDAP for some years is planned to be decomissioned. 

Users will all be given new ids in a new domain.

We want to replace user names in the database with names in the new domain.

I've created several SQL scripts to do this but have issues accessing the data.

e.g. one issue I'm getting is updating reporter with script below


   UPDATE dbo.jiraissue
SET dbo.jiraissue.REPORTER=isnull((SELECT distinct ISNULL(sanuk_user_name, ants_user_name)
  FROM dbo.std_ants_sanuk_users
  WHERE dbo.jiraissue.REPORTER=dbo.std_ants_sanuk_users.ants_user_name),dbo.jiraissue.REPORTER)
Where std_ants_sanuk_users is a lookup view of old user names to new user names. Both domains are configured and can be used to login.
The issue table is updated. I've reindexed and restarted. 
But when I search for issues where reporter = new name there are no results.
If I scroll through the issues manually the new names are visible with correct ids.
more info:
This JQL works
issueFunction in expression ("", "reporter == 'E1153126'")
This JQL doesn't
reporter = E1153126
(and any other tips appreciated!)

1 answer

It seems the values of Reporter, Creator and Assignee have to be lower cased when updated.

resetting them and reindexing has worked.

Still looking for tips on directory migration :-)

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Posted Mar 28, 2018 in Jira Software

Can a company’s culture make or break agile adoption?

Can a new-to-agile team survive and thrive in a non-agile culture? If so, what advice would you give to those trying to be agile in a non-agile culture? What's the key(s) to success? Share your thoug...

13,584 views 16 15
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