have you checked the REST endpoint?, namely site.tld/wp-json/wp/v2/users
By default all user names are exposed that way.