def user_get(alias=None, userids=None, **connection_args):
 conn_args = _login(**connection_args)
 try:
  if conn_args:
   method = 'user.get'
   params = {'output': 'extend', 'filter': {}}
   if ((not userids) and (not alias)):
    return {'result': False, 'comment': 'Please submit alias or userids parameter to retrieve users.'}
   if alias:
    params['filter'].setdefault('alias', alias)
   if userids:
    params.setdefault('userids', userids)
   params = _params_extend(params, **connection_args)
   ret = _query(method, params, conn_args['url'], conn_args['auth'])
   return (ret['result'] if (len(ret['result']) > 0) else False)
  else:
   raise KeyError
 except KeyError:
  return False

def user_get ( alias = None , userids = None , ** connection_args ) : conn_args = _login ( ** connection_args ) try : if conn_args : method = 'user.get' params = { 'output' : 'extend' , 'filter' : { } } if ( ( not userids ) and ( not alias ) ) : return { 'result' : False , 'comment' : 'Please submit alias or userids parameter to retrieve users.' } if alias : params [ 'filter' ] . setdefault ( 'alias' , alias ) if userids : params . setdefault ( 'userids' , userids ) params = _params_extend ( params , ** connection_args ) ret = _query ( method , params , conn_args [ 'url' ] , conn_args [ 'auth' ] ) return ( ret [ 'result' ] if ( len ( ret [ 'result' ] ) > 0 ) else False ) else : raise KeyError except KeyError : return False
retrieve users according to the given parameters .