What permissions SonarQube user should have to access /api/projects/search?

  • Community Edition
  • v9.9.5 (build 90363)
  • What permissions SonarQube user should have to access https://sonarqube.example.net/api/projects/search ?
  • getting {“errors”:[{“msg”:“Insufficient privileges”}]}
  • Tried adding user to Permission Template with Project Key Pattern: \[*\] and all options selected (like Browse, See Source Code, etc.) - still getting {“errors”:[{“msg”:“Insufficient privileges”}]}
  • Only works with “Administer System” Global Permission.
  • But this user should not have “Administer System” Global Permission.

Well yes, that’s what the documentation says

Requires ‘Administer System’ permission

Your user might want to use GET api/components/search with qualifiers set to TRK.

Thank you!
GET api/components/search with qualifiers set to TRK
is suitable alternative

1 Like