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

Change WS api/permissions/users to return all permissions

    Details

      Description

      Currently you need to specify the user 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/users?q=admin
      
      {
        "users": [{
          "login": "admin",
          "name": "Administrator",
          "email": "admin@admin.com",
          "permissions": [
             "admin",
             "issueadmin",
            ...
           ]
        }],
        "paging": {...}
      }
      

      Behavior:

      • By default return all users that have at least one permission.
      • If permission parameter present, return only users that have that permission.
      • If search query q present, return all (having and not having permissions) users 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: