Groups | Remove users from default groups and add them to another group

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube - 9.6.1)

  • what are you trying to achieve

I am trying to create groups and then add users to respective groups. Right now when the users are added, they get added to default group which has read access to both projects. We want to restrict users to specific projects.

  • what have you tried so far to achieve this

I have tried to create a group and then add users to it but then the other users get logged out of sonarqube too. I want to change the default group and add users to their own groups.

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

Hi,

Welcome to the community!

You don’t say how you’re authenticating, but group mapping is probably what you need.

Remove sonar-users access to your projects, and grant only to the subgroups. Then have group membership mapped on login and it should get you the result you’re after.

 
HTH,
Ann