We are in the process of a domain migration but it is only workstations that are migrating. Users are not being migrated but created as new users in the new domain (they already exist as they were created so Exchange mailboxes could be setup).
As a result of this usernames will be different on each domain as will all other user info apart from email address.
I need a way of updating / migrating users in BitBucket (and JIRA) so that when we migrate the BitBucket server (LDAP lookup) to the new domain users can just start using their new domain account but get all the permissions and repositories that they currently have.
I have looked at the REST API and the rename function but it only works for built in users. It throws a http 500 error when I try to change the username of an LDAP authenticated user.
Any ideas how I can do this? Am I going to just have to go direct to the DB? I would prefer to do this via an API so I don't miss anything via the the direct DB change method.
Thanks