After upgrading to 2025.2 from 10.7 not able to login to sonar

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension) sonarqube:25.2.0.102705-community, sonar-auth-aad-plugin-2.0.1.jar
  • how is SonarQube deployed: using docker
  • what are you trying to achieve
  • upgrading to 25.2
  • what have you tried so far to achieve this
    already upgraded to 25.2 but not able to log into 25.2 using microsoft login but able to log into it using admin credentials
    2025.05.15 03:26:39 ERROR web[6e59cc64-61ac-4067-9f3f-da8cd971f1ea][o.a.a.a.AadIdentityProvider] Exception:org.sonar.server.authentication.event.AuthenticationException: Email ‘abc@xxx.com’ is already used
    2025.05.15 03:26:39 ERROR web[6e59cc64-61ac-4067-9f3f-da8cd971f1ea][o.a.a.a.AadIdentityProvider] Exception:org.sonar.api.server.authentication.UnauthorizedException: Email ‘abc@xxx.com’ is already used
    2025.05.15 03:27:07 ERROR web[c55f25c1-0018-4c2e-9d15-90a474accf9c][o.a.a.a.AadIdentityProvider] Exception:org.sonar.server.authentication.event.AuthenticationException: Email ‘abc@xxx.com’ is already used
    2025.05.15 03:27:07 ERROR web[c55f25c1-0018-4c2e-9d15-90a474accf9c][o.a.a.a.AadIdentityProvider] Exception:org.sonar.api.server.authentication.UnauthorizedException: Email ‘abc@xxx.com’ is already used
    2025.05.15 03:38:39 ERROR web[317116d7-6331-406e-aeb6-d237299298f3][o.a.a.a.AadIdentityProvider]
    Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

For some years there is a integrated authentification in SonarQube, you shouldn’t need the sonar-auth-aad-plugin any longer. Maybe there was a breaking change in the SQ API.
We are using SAML with Microsoft Entra ID (configured in the admin UI, not in the config file) with 2025.2 developer edition without problems during upgrade.

According to the docs SonarQube base URL needs to be a public URL.