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

Create new java WS to search users

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2
    • Component/s: Web API
    • Labels:
      None

      Description

      GET api/users/search

      Input

      • q=stas to search by login and name (%like% search)
      • f=login,name,email,groups,scmAccounts to set the response fields
      • p to set page number
      • ps to set page size

      Output

      {
        "p": 1,
        "ps": 100,
        "total": 1329,
        "users": [
          {
            "login": "stas.vilchik",
            "name": "Stas Vilchik",
            "email": "stas.vilchik@sonarsource.com",
            "groups": ["users", "admins"],
            "scmAccounts": ["stas@example.com"]
          }
        ]
      }
      

        Attachments

          Activity

            People

            Assignee:
            jeanbaptiste.lievremont Jean-Baptiste Lievremont
            Reporter:
            stas.vilchik Stas Vilchik (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: