Function to Look-up User Name or Email

Function to Look-up User Name or Email

I recently imported a bunch of records from one table to another and lost all the zoho.loginuser names. Yea, I know...should have been more careful.

What I'd like is a function that can lookup Zoho's SSO usernames based on zoho.loginuserid or vice versa. This would allow me to run a script to update all the unique usernames, since these are essentially the keys for each record that determine who can view them.

Cheers,
John Whitney