Adding a member selects Microsoft account instead of GitHub account

Org member “A” can sign in through GitHub and access the original organization, but adding the shared email to the second, unbound organization selects the Microsoft-backed account.

We’ve tried logging out and back in, confirming account id. Tried deleting org member and readding only to see the microsoft backed account. Tried using incognito, tried logging in via Microsoft (unable as SSO is not enabled), etc.

This has not been an issue for other members of both orgs.

Only one Org can be bound to Github.

How to add the existing GitHub-backed account without disrupting its original organization memberships?

Second Org:

image

Original Org:

image

@ Nathan.day (Unable to tag as a new member).

Hello,

These instructions should help: Using multiple accounts | SonarQube Cloud | Sonar Documentation

Perhaps I don’t understand the instructions or how this applies as the user (all users in our org) only have a single email address used between Azure AD, Github, etc.

Hey @jmclaughlin-BL, could you please ask user A to log out from SonarQube Cloud, log back in via GitHub, and then can you try again adding user A to the new organization by searching their email? If when doing this, the username that pops up is the one for the azure/microsoft account and not for the github account, please let me know. I will contact you via private message to ask for both full usernames (the github and azure/microsoft one) and we will have a look in the back-end for any anomalies.

Yes and that is exactly what happens.

Thanks!!

Hi @jmclaughlin-BL,

Sorry for the late response.

If you are still encountering the issue, please try:

  1. On GitHub, add your work email to the account, verify it, and make it primary.
  2. Log out of SonarQube Cloud, then log back in with GitHub.
  3. If you see an “email already exists” prompt, accept the switch. The email moves to your GitHub account.
  4. Search for that email again in the add-member dialog. The GitHub account should now appear.

Let us know if that worked.

Cheers

The email associated to the github member is already the work email and is primary.

Not sure how this would apply with the instructions provided.

Thanks!