401 listing realms in UI

I have a problem with the realm list in the UI (admin console).
The user has all permissions, as far as I can see. When I’m set in master realm realm list work fine but in any other realm the API call gets 401.
This is the end point that is calling: {host}/admin/realms/{realm}/ui-ext/realms/names

Am I missing a role or is it a bug?
I’m using a work around which is changing realms from the url in the browser.

Version: 26.0.5