SonarQube Roles for Web Api

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension) Community Edition
  • Version 10.0 (build 68432)
  • LGPL v3
  • Community
  • Documentation
  • Plugins
  • Web API
  • how is SonarQube deployed: zip, Docker, Helm - not sure
  • what are you trying to achieve - access to Web Api to develop reports
  • what have you tried so far to achieve this - access the Web Api.

I work as AppSec Engineer. Some of my teams have request reports. I know the UI does not have report to export to excel or csv. I know you can do this via Web Api. I want to know what role you have to have to access it. I want to show the teams how to do instead of doing it for them and enablement support. However, I want to know what role would a person who accesses needs to have? Is it an administrative role. We do not want to just hand out adm roles to developers. Can you provide me with an alternative to extract a report without an admin role? Any information would help.

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)! No

Normally you just need Browse permission on the project(s) in question to use common reporting APIs like GET api/issues/search or GET api/measures/search_history.

Permissions are typically outlined in the Web API docs.

:warning: Only the latest version of SonarQube Community Build is considered active, so you’ll need to update and see if the situation is still replicable before we can help you.

Your update path is:

10.0 → 24.12 → 25.11

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.