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

Create WS to search groups by permission template

    XMLWordPrintable

    Details

      Description

      Create a Web Service that returns groups with a selected flag if the group has the permission template.

      Parameters:

      • permission - key of the permission
      • template - key of the permission template
      • component : component key (can be null for global permissions)
      • selected [all|selected|deselected] - flag that shows what users should be included in result set
      • query - string to search in group name
      • page - page numer
      • pageSize - number of results on a page

      The selected or query parameter is always provided, but never both.

      This WS should be paginated.

      Example:

      GET /permission_templates/search_groups?template=default_template&permission=user&page=1&pageSize=100&selected=all
      {
        "more": false,
        "results": [
          {"name": "sonar-users", "selected": true},
          {"name": "sonar-administrators", "selected": false}
        ]
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              julien.lancelot Julien Lancelot
              Reporter:
              julien.lancelot Julien Lancelot
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: