Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-7838

Change WS api/permissions/groups to return all permissions

    Details

      Description

      Currently you need to specify the group query and one permission to get results. Change it the way that for each user the full list of permissions is returned. For example:

      GET api/permissions/groups?q=admin
      
      {
        "groups": [{
          "id": "1",
          "name": "sonar-administrators",
          "description": "System administrators",
          "permissions": [
             "admin",
             "issueadmin",
            ...
           ]
        }],
        "paging": {...}
      }
      

      Behavior:

      • By default return all groups that have at least one permission.
      • If permission parameter present, return only groups that have that permission.
      • If search query q present, return all (having and not having permissions) groups matching the query.

      That means removal of selected parameter.

      Note the the WS should still work for global and project permissions.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julien.lancelot Julien Lancelot
                Reporter:
                stas.vilchik Stas Vilchik (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: