def get_group_members(group_name, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 try:
  marker = None
  truncated = True
  users = []
  while truncated:
   info = conn.get_group(group_name, marker=marker, max_items=1000)
   if (not info):
    return False
   truncated = bool(info['get_group_response']['get_group_result']['is_truncated'])
   if (truncated and ('marker' in info['get_group_response']['get_group_result'])):
    marker = info['get_group_response']['get_group_result']['marker']
   else:
    marker = None
    truncated = False
   users += info['get_group_response']['get_group_result']['users']
  return users
 except boto.exception.BotoServerError as e:
  log.debug(e)
  msg = 'Failed to get group {0} members.'
  log.error(msg.format(group_name))
  return False

def get_group_members ( group_name , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) try : marker = None truncated = True users = [ ] while truncated : info = conn . get_group ( group_name , marker = marker , max_items = 1000 ) if ( not info ) : return False truncated = bool ( info [ 'get_group_response' ] [ 'get_group_result' ] [ 'is_truncated' ] ) if ( truncated and ( 'marker' in info [ 'get_group_response' ] [ 'get_group_result' ] ) ) : marker = info [ 'get_group_response' ] [ 'get_group_result' ] [ 'marker' ] else : marker = None truncated = False users += info [ 'get_group_response' ] [ 'get_group_result' ] [ 'users' ] return users except boto . exception . BotoServerError as e : log . debug ( e ) msg = 'Failed to get group {0} members.' log . error ( msg . format ( group_name ) ) return False
get group information .