sonarqubesonarqube-web

SonarQube API: Retrieving a list of users assigned to a project permission?


I'm trying to find a list of users for a specific project (by projectKey) who possess the issueadmin permission. I've found a documented API that gets me pretty close:

api/permissions/search_project_permissions

but the response that I get back only has summary information: counts of groups/users for each permission type.

search_project_permissions response

Does anybody know if there's a way to get to the login details for the users?


Solution

  • There is an "internal" web service (meaning it could change without notice!) that does this. You'll use it like so:

    http://myserver.myco.com/api/permissions/users?projectId=[project guid]&permission=issueadmin
    

    In Web API interface use the "Show Internal API" checkbox at the top of the left column to see it.