@Override
    public List<JID> getAdmins() {
        final String groupName = GROUP_NAME.getValue();
        try {
            // Note; the list of admins is already cached, so if the list is being refreshed force a cache refresh too
            return new ArrayList<>(GroupManager.getInstance().getGroup(groupName, true).getMembers());
        } catch (GroupNotFoundException e) {
            LOGGER.error(String.format("Unable to retrieve members of group '%s' - assuming no administrators", groupName), e);
            return new ArrayList<>();
        }
    }
Makes the users of specific group Openfire administrators.

<p>To use, set the System Property `provider.admin.className` to the value `org.jivesoftware.openfire.admin.GroupBasedAdminProvider`</p>

<p>The list of Openfire administrators will be taken from the members of the group defined by the System Property
`provider.group.groupBasedAdminProvider.groupName` - which defaults to `openfire-administrators`</p>

<p><strong>NOTE: </strong> Although the system properties `provider.admin.className` and `provider.group.groupBasedAdminProvider.groupName` are dynamic, a restart may
be required as the list of admin users may be cached.</p>
xmppserver/src/main/java/org/jivesoftware/openfire/admin/GroupBasedAdminProvider.java