Changing Groups to Private one by one

Must-share information (formatted with Markdown):

  • which versions are you using SonarQube
  • what are you trying to achieve: I want to set a group in SQ from public to private. I already have a security template set but the Public setting is overwriting it. I need to make the group private.
  • what have you tried so far to achieve this
    I tried setting a template but it gets overwritten

Hi there!

Thanks for reaching out. We don’t have a private/public designation for groups in SonarQube, but we do have those designations for projects. Are you referring to private projects and permission templates, or is it something else? Let me know when you can.

Yes I meant projects not groups. We were able to edit them with the API. do you have a command that would be easy to change one projects permissions

Thanks for clarifying. You can set a project to private using the directions in the authorization section of our security documentation.

Private projects have two additional permissions:

  • Browse : Access a project; browse its measures, issues, and Security Hotspots; perform some issue edits (confirm/resolve/reopen, assignment, comment); comment on or change the user assigned to a Security Hotspot.
  • See Source Code : View the project’s source code.

To ensure these permissions can take effect, you need to set the project to private from its administration menu.

Project permissions are available from the project-level Administration menu: Project Settings > Permissions

You should see an option at the top of the page to make the project private and enable the additional permissions. I used a sample project as an example.

Let me know if you have any questions about that.
.

thank you