our specific LDAP setup is managed by iRedMAil and iRedAdmin
users DNS look like dn: firstname.lastname@example.org,ou=Users,domainName=domain.com,o=domains,dc=domain,dc=com
groups are similarly also identified by mail adresses
is it possible to user just the username für synchronizing the users to jira and append `@domain.com` automatically?
and either way if that is possible or not, how can i transfer ISSUES and boards to different users?
the usernames would change like this
username -> email@example.com
preferable i would want to run a query that replaces all user references with the new users
on the other services like bitbucket there is not much data created so transfering users should be able to be done manually
I understand you want to change all the usernames in Jira from the format of just 'username' to 'firstname.lastname@example.org' and that your users in Jira are being managed in an LDAP directory that Jira is connected to.
This can be done if you are using a connected LDAP directory (a delegated LDAP directory in Jira does not handle this kind of user rename task). The trick to making sure this works is to make sure that your LDAP directory in Jira has the correct value for the "User Unique ID Attribute:" field for this user directory. For different LDAP types (AD/OpenLDAP/etc) this attribute can be different. However the purpose of that field is to generate a unique value that corresponds to the account itself. This way if the account is renamed in LDAP, when Jira syncs with the LDAP instance it can understand that this is the same account and in turn will rename the user account it has for that user. Whereas if Jira does not have the correct attribute set here, when the sync happens after a user rename, Jira would instead create a new user account. If the new user account is created, this is because Jira does not understand that a rename has happened, and instead it is just adding the user accounts found in the directory per the DN/user filters in place. These LDAP attributes in Jira are also better explained in Connecting to an LDAP directory.
I also tried to highlight the critically important attributes on the directory in Jira as it pertains to this scenario:
It's important to make sure that the user rename that happens in LDAP is working correctly in Jira first. I would suggest trying to rename a test account in LDAP first, and then syncing Jira just to make sure this change is taking place in the way you would expect it to, and not just creating a new user account. Once that is complete, there are two different approaches you can take to try to rename all these accounts in Jira from username to email@example.com formats:
That said, I would still recommend that you test out this kind of change on a staging server first. This kind of change has the potential to lock out all your users from Jira if this is not done correctly or you encounter any unexpected results. If you don't have a staging server to test this on first, then I would recommend trying these steps:
If this works, you should be all set. But if this doesn't work, then you should still be able to quickly revert these changes by re-ordering the old directory back to the higher order and syncing that once more.
...PermissionsStartOnly=true User=www-data Group=www-data ExecStart=/opt/jira/bin/startup.sh ExecStop=/opt/jira/bin/shutdown.sh TimeoutStartSec=120 TimeoutStopSec=600 PrivateTmp=true [Install] WantedBy...
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!
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