Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

my_user:query

// WP_User_Query arguments
$args = array(
	'role'           => 'Subscriber',
	'fields'         => 'all_with_meta',
);

// The User Query
$user_query = new WP_User_Query( $args );