Must-share information (formatted with Markdown):
- Sonarqube 9.9
- Sonarqube deployed using Docker/Kubernetes
My company recently joined another company. As a result:
- All users have a new email (from user@oldcompany.com to user@newcompany.com)
- We moved to a new Github entreprise (from github.oldcompany.com to github.newcompany.com)
- We no longer have access to the old Github
I want to migrate Sonarqube users to use the new Github as Auth provider.
What I’ve tried ?
- I’m aware of the guide Migrating SonarQube Users Between Identity Providers (with a focus on LDAP → SAML),
- I used the POST /api/users/update_identity_provider to change the auth provider, but since the email also changed, it won’t let the user log in because of email mismatch
- We no longer have acces to the old Github (so it’s not possible to update the email in the old github)
- As an admin, I cannot change a user email because emails are managed by the Auth provider
So my issue is I’m stuck in a cycle:
- User need to login to update the email,
- User need to update email in order to log in.
So what are my options here ?
- A manual update of emails in the database to unlock the situation; could this work ?
- Let the new Auth provider create new users and reassign all issues to new users ?
- Anything else ?
Thank you