How do I find out the user account id from an email ?

How do I find out the user account id from an email ?

I'm creating an employee register by using an API from our HR system (not Zoho People) and I want to link the zoho account of employees to this record. However I can't use the associated email and I can't find a way to get the account id.

For example :
varFindExisting.User_Profile=varEmployeeRecord.getJSON("humanReadable").getJSON("email");

Where User_Profile is a Zoho User field with the display type Email Address


And varEmployeeRecord.getJSON("humanReadable").getJSON("email"); will return the email address from the HR system.

When I run it I get the error :

Execution Failed
Unable to update the value to carFindExisting.User_Profile (Line xx)
Invalid user name found for User_Profile field

So I'm looking for how I can find out the username "zoho_cat7" from the associated email "cat@example.com"


I will be running this for all of our employees overnight so anything to do with the logged in user won't work



      • Sticky Posts

      • Share your success story

        We would like to hear from our passionate users how much Zoho Creator has changed the way you work and benefited you. If you would like to share your story to us and be featured as a proud user of Zoho Creator, then this is for you. Fill up the form below and if you want to be included in a case study, we will get in touch with you to get further details. So what are you waiting for? Tell us your story. Charles
      • Merge and Store v1 API depreciation

        Hi Zoho Writer users, The Merge and Store v1 API allows you to store the merged document in Zoho WorkDrive. The response of this API will be returned with the document's ID only after the merge is complete. In Deluge, the maximum timeout for operation
      • Zoho Creator Developer's Conference 2017 !!!

        We welcome all our Creator Developers! You're invited to join us for our annual Zoholics Developers conference August 29th–31st! This is your chance to get training and guidance on Zoho Creator from our most knowledgeable custom app builders.       Zoholics Developers is a three-day event where you'll participate in interactive workshops to hone your app-building skills, get questions answered by Creator experts with personal one-on-one sessions, and connect with other Creator developers from around