public Collection<String> getUsernames() {
        return provider.getUsernames();
    }
Returns an unmodifiable Collection of usernames of all users in the system.

@return an unmodifiable Collection of all usernames in the system.
xmppserver/src/main/java/org/jivesoftware/openfire/user/UserManager.java