Hi Team, Is there any way to know like which all projects are using a particular group?

SonarQube Enterprise Version: 9.4.0
Is there any way to know like which all projects are using a particular group?? may be via API??

Hi,

I don’t understand the question. Are you asking about a permissions group?

 
Ann

Hi Ann,
So, we use permission templates to cover projects that will have certain set of projects defined by project keys and to give permission on those projects we use some grps like developer with less permission and admin with full permissions on those projects.

If, you have to check like admin group used by how many projects then how can we check at a single page??

Thanks & Regards

Hi,

The interface (and therefore the API) simply isn’t built to do this easily.

You’ll need to manually iterate over your projects & check the groups with permissions for each one (/api/permissions/groups?projectKey=[project key]&ps=100).

Alternately, if you re-apply your permission templates, then you’ll know because you’ve just reset the projects’ permissions. (Note that applying a template and then editing it, does not change the permissions of a project you’ve previously applied the template to. There’s no ongoing relationship between templates & projects.)

 
HTH,
Ann