Community Build: API returns permission architectureadmin that should not be visible

Hi,

I am running SonarQube Community Build v26.9.0 deployed via Helm.

Since v26.7 or v26.8 the API returns the permission “architectureadmin” that should only be visible on edition developer or above (https://sonarsource.atlassian.net/browse/SONAR-30599). This permission, however, cannot be set or removed in SQCB.

As I have an automation in place that checks the current permissions and tries to correct them, this fails as this permission gets returned by the API but cannot be set or removed.

My current workaround is that the automation filters out this permission, but I think that the better solution would be for the API not to return invalid/unsupported permissions in the first place.

Cheers
Volker

Hey @klasvo, welcome to the Community! Could you share which specific API endpoint are you using and is returning the architectureadmin permission?

Thanks! Sure, the endpoint I’m using is

GET api/permissions/template_groups internal since 5.2

It’s flagged as internal, but it is the only one that (to my knowledge) can list the permissions of groups in templates (the UI uses this also, as I could see in my browser).

Cheers
Volker

Hi @klasvo, thanks for confirming! I’m flagging this for the team, although I can’t promise that they will address it because this is an internal API and therefore we reserve the right to modify it without notice.