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

Create WS to search users by permission

    XMLWordPrintable

    Details

      Description

      Create a Web Service that returns users with a selected flag if the user has the permission.

      Parameters:

      • permission - points to the permission
      • 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 user 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 /permissions/search_users?component=org.sample.Sample&permission=user&page=1&pageSize=100&selected=all
      {
        "more": false,
        "results": [
          {"name": "Julien", "login": "julien", "selected": true},
          {"name": "Stas", "login": "stas", "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: