import fetch from 'node-fetch';

async function test() {
  const res = await fetch('https://fiesta.nearle.app/live/api/v1/web/users/getallusers?tenantid=1135');
  const json = await res.json();
  const users = json.details || json;
  
  const rsPuramUser = users.find(u => u.userid === 1409 || (u.email && u.email.includes('rspuram')));
  console.log('RS Puram User:', JSON.stringify(rsPuramUser, null, 2));

  const gandhipuramUser = users.find(u => u.userid === 1406 || (u.email && u.email.includes('gandhipuram')));
  console.log('Gandhipuram User:', JSON.stringify(gandhipuramUser, null, 2));
}

test();
