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

Change WS api/permissions/template_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/template_users?templateId=1&q=admin
      
      {
        "users": [{
          "login": "admin",
          "name": "Administrator",
          "email": "admin@admin.com",
          "permissions": [
             "admin",
             "issueadmin",
            ...
           ]
        }],
        "paging": {...}
      }
      

      That means removal of selected parameter.

      If permission parameter present, return only users 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:
                3 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: