Affects Version/s: None
Fix Version/s: 1.5
When a user is member of more than 30 teams in GitHub, only the first 30 teams will be synchronized when authenticated in SonarQube.
We use /api/v3/user/teams to get the list of his teams.
As any GitHub answer returning multiple results, 30 results max will be returned, then paginated.
In org.sonarsource.auth.github.GitHubIdentityProvider#getTeams, we do not loop for multiple pages.
So if the organisation(s) allowed to authenticate (sonar.auth.github.organizations) is not part of this 30 first bunch, the auth will fail.
- Delete the GH user from SonarQube
- Create an analogous (same email and/or SCM accounts) local account for the user
The user will be able to log in manually using the "More options" link on the login page, and the new local account should transparently pick up the issues previously assigned to the old account.