Email cannot be linked to this account, user cannot be added to organization

  • ALM used: Azure DevOps
  • CI system used: Azure DevOps
  • Error observed: similar to this, the user (me) gets a warning that the email cannot be linked to the account. At the same time, the organization admin is unable to see my account, so it cannot be added to our organization.
  • Steps to reproduce: log in to SonarCloud using Azure DevOps, that’s it.
  • Potential workaround: the workaround mentioned in the other question is to change the email in Azure DevOps. However, this is not an option in my case, as the Azure DevOps user is linked to Microsoft Entra ID, so the email address is fixed and cannot be changed on our end. It is also against policy to add users with a different email address to the organization.
  • Extra information: I previously had an account under the same email address, but this account was deleted from Microsoft Entra ID and subsequently from Azure DevOps when I left the organization a few years ago. Presumably, the SonarCloud account it was linked to still exists in limbo somewhere. Now, a few years later, I am back with the organization and have received a new account in Microsoft Entra ID (and therefore Azure DevOps) with the same email address as my old account. Upon logging in to SonarCloud through Azure DevOps now, it looks like SonarCloud has created a new account (with different ID), but refuses to link the email address because it is still linked to the old account. Obviously, I cannot access the old account anymore, since the Microsoft Entra ID it was created from has been deleted long ago on our side.

So as you can see, I am stuck unable to be added to our organization and the workaround provided in the other question is not an option in my case. Please advise me on how to resolve this issue.

Justin Allen helped me a few years ago with some kind of a similar problem. Is he or anyone else from Sonar able to help Leon out?

Hello @lwebb and apologies for the late reply.
Are you using this same email address for other accounts on SQC? For example with GitHub, Gitlab, or BitBucket?
If so, an other workaround is to delete those accounts and only keep the Azure DevOps one.
Please let me know if that’s a viable option for you.
This is temporary and we are actively working on a less restrictive solution.

Hi Nour Zerhouni, thanks for the reply and suggestion. However, as far as I am aware, I don’t have any GitHub, Gitlab or BitBucket accounts with this email address. As I explained, I used to have another Azure DevOps account with this email address a few years ago, which was deleted at some point and recently recreated.
I do know the ID of my old sonar user, but I have no way to access or delete that account myself, since the original user account in Azure DevOps which I used to log in to SQC in the past no longer exists. Perhaps you have a way to delete it for me?