What and why to refactor
It seems that the code is using /api/projects/search to obtain the project list in SonarQube, which requires system admin right.
Describe the solution you'd like
Replace with /api/components/search_projects endpoint works without admin rights.
Related issues
N/A
Additional context
incubator-devlake/backend/plugins/sonarqube/api/blueprint_v200.go
line 134:
res, err := apiClient.Get("projects/search", query, nil)