Figure out why the usergroup is having no effect?

Hi Team
I added users in Group(9 users), user for first time able to access to project but for second time user is not able to access and i see user removed from group as well.

  • LTS 9.9

Hey there.

As noted in the docs on Delegated Authentication

Group Mapping

When using group mapping, the following caveats apply regardless of which delegated authentication method is used:

  • membership in synchronized groups will override any membership locally configured in SonarQube at each login
  • membership in a group is synched only if a group with the same name exists in SonarQube
  • membership in the default group sonar-users remains (this is a built-in group) even if the group does not exist in the identity provider

:warning:When group mapping is configured, the delegated authentication source becomes the one and only place to manage group membership, and the user’s groups are re-fetched with each log in.

So it sounds like you’re delegated authentication to a provider expecting it to provide group information, but now you’re manually adjusting groups in SonarQube.

You either make sure these groups exist in your Identity Provider, or turn off group mapping so you can manage the groups in SonarQube yourself.