Uploaded image for project: 'Product Roadmaps'
  1. Product Roadmaps
  2. MMF-1063

Grant Quality Profile "Edit" permission to specific users and groups



    • Type: MMF
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Labels:



      Currently, managing QP is a global permission that, once assigned, allows a user or a group users to create/edit/delete every QP available on the SonarQube instance.

      As a consequence, most SonarQube admin keep this permission for themselves, to prevent any user to edit or delete someone else's QP. This does not scale very well in large companies where the management of quality profiles is too much centralized and therefore not flexible enough for dev teams.

      Use Cases

      As a user who has the global "Manage QP" permission, I can create a quality profile and give edit rights to specific users and/or groups:

      1. I go to "Quality Profiles" page
      2. I create a new QP and land on the page of that QP
      3. Under the "Rules" tile, I've got another tile called "Permissions" under which I see:
        • A short text that says "Grant edit permission to users or groups"
        • "Add User" and "Add Group" buttons
      4. When I click on one of the buttons, this opens a modal to select a user or a group (like for selection members of an org for instance)
      5. Once I have selected (let's say) a user, it appears in the list of this "Permissions" tile, and there's a red cross close to it if I want to remove it

      Note: obviously, this "Permissions" tile is not available on built-in QP because it's must be impossible to grant edit rights on built-in QP (they are read-only by definition).

      As a user, when I am on the page of a QP for which I have edit rights, I have the same user experience as the user who has the global "Manage QP" permission, i.e. I can add/remove users or groups.

      Known Limitations

      To keep this MMF as "minimal" as possible and make sure we can make it for LTS, we restricted the scope of this feature to the "edit permission" on a QP. This means that it's not possible to delegate the creation of QP - responsibility which still belongs to the global "Manage QP" permission.

      Current Design Solution



          Issue Links



              ann.campbell.2 Ann Campbell
              fabrice.bellingard Fabrice Bellingard
              1 Vote for this issue
              3 Start watching this issue