Read permissions through all projects

We are trying to set some automations and read data for BI report and we need to set up specific type of permissions for our NPA accounts. Those should be able to read through all the projects (even the private ones) on the SonarQube * Version 9.9.1 (build 69595).

At the moment we have only admin assigned but would like to restrict admin access for specific use only, not for NPAs.

Do you have any suggestions on what permissions setup we should do? I assume we would need to set up specific permissions template? Is there any recommended template setting for such cases?

Thank you,
Maja

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

You’ll need to make sure that the user has Browse permission on all projects. You can configure this in all permission templates (easy), but to apply that to existing projects you’ll either need to reapply permission templates (overwriting all existing permissions) or use the Web API (docs linked in the footer of your instance) to ensure that permission exists.

  1. Iterate through GET api/search/projects
  2. Add permissions via POST api/permissions/add_user

Another suggestion, to make it easier in the future if you want to add more users like this, would be to assign the permissions to a group.