Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Confirmed Members within current Group

// WP_User_Query arguments
$args = array(
	'meta_query'     => array(
		array(
			'key'     => 'pm_group',
			'value'   => '$groupnumber',
			'compare' => 'IN',
		),
	),
);

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