Fetch Lead Owner Email and pass into Lead Record

Fetch Lead Owner Email and pass into Lead Record

I'm trying to fetch a lead owner's email address and pass it into a custom field that I created whenever a Lead Owner is created/updated.

So far, here's what I've come up with:

I've been able to grab the lead owners name and lead Owners ID but I'm still not sure how to associate the ID/Name with the Users Email address and then pass it into the lead map. Please help!

lead = zoho.crm.getRecordById("Leads",input.leadID);
leadMap=map(lead);
leadOwnerName=leadMap.get("Lead Owner");
info leadOwnerName; 
leadOwnerID=leadMap.get("SMOWNERID");
info leadOwnerID;
usersMap = users.get("responseText");
startPath = usersMap.executeXPath("/users/user");
xmlList=startPath.toXmlList();
for each r in xmlList
{
text = r.toString().executeXPath("/user/text()");
city = r.toString().executeXPath("/user/@city");
confirm = r.toString().executeXPath("/user/@confirm");
country = r.toString().executeXPath("/user/@country");
email = r.toString().executeXPath("/user/@email");
fax = r.toString().executeXPath("/user/@fax");
id = r.toString().executeXPath("/user/@id");
language = r.toString().executeXPath("/user/@language");
mobile = r.toString().executeXPath("/user/@mobile");
phone = r.toString().executeXPath("/user/@phone");
profile = r.toString().executeXPath("/user/@profile");
role = r.toString().executeXPath("/user/@role");
state = r.toString().executeXPath("/user/@state");
status = r.toString().executeXPath("/user/@status");
street = r.toString().executeXPath("/user/@street");
timezone = r.toString().executeXPath("/user/@timezone");
website = r.toString().executeXPath("/user/@website");
zip = r.toString().executeXPath("/user/@zip");
zuid = r.toString().executeXPath("/user/@zuid");
}

email = email.remove("<email><![CDATA[").remove("]]></email>");

info email;