at the moment (Sonarqube 9.7.1) I have not found any other way than to manually check all permission templates to answer this simple question that may be part of a security audit.
What permission templates does a Sonarqube group belong to?
This would be easy if api/permissions/search_templates returned all users and groups
instead of just usersCount and groupsCount.
ok, so it’s api/permissions/search_templates to get all permission templates
then use /api/permissions/template_groups?templateName=xxx' in a loop for all permission templates to get the groups.
While this works api/permissions/search_templates returning the groups and users would be
much more comfortable.