Get a list of Confluence users with Confluence Administrator rights

Hi,

Does anybody know how could I get a list of Confluence users with Confluence Administrator rights and global space creation permission?

The problem is that the “confluence-administrators” group might not be present (e.g renamed or deleted), but I need to find a user with the mentioned priviliges.

I know about the hasPermission method, but I don’t want to iterate over all users to find the proper ones (as it might take a quite long time if there are hundreds of users).
https://developer.atlassian.com/confdev/development-resources/confluence-developer-faq/how-do-i-tell-if-a-user-has-permission-to

So is there any other way to do it without the iteration?

Is there any app that looks up the “super-users” existing in Confluence?

If so, what is the efficient alternative to looking up the user accounts that are members of the “confluence-administrators” group?