Retrieve list of users matching criteria.

Signature

get_users( $args = array() )
args
 (array) Optional. Array of arguments.
Default: array()

Return

(array) List of users.

Source

function get_users( $args = array() ) {

	$args = wp_parse_args( $args );
	$args['count_total'] = false;

	$user_search = new WP_User_Query($args);

	return (array) $user_search->get_results();
}
WP Trac GitHub

Link here