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

Change WS api/permissions/template_groups to return all permissions

    XMLWordPrintable

    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/template_groups?templateId=1&q=admin
      
      {
        "groups": [{
          "id": "1",
          "name": "sonar-administrators",
          "description": "System administrators",
          "permissions": [
             "admin",
             "issueadmin",
            ...
           ]
        }],
        "paging": {...}
      }
      

      That means removal of selected parameter.

      If permission parameter present, return only groups that have that permission.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Due:
                Created:
                Updated:
                Resolved: