How to get Current logged in userId using Zoho deluge REST api

How to get Current logged in userId using Zoho deluge REST api

Hi All,
I am using deluge function to get currently logged in user and its perfectly work but I am trying to integrate that deluge function with rest api with third party. It is responding paraent Zoho logging userid.
userTypes = Map();
user_response = zoho.crm.invokeConnector("crm.getusers",userTypes);
listOfUsers = ifnull(user_response.get("response").get("users"),{});
currentLoggedInUser = 0;
for each  user in listOfUsers
{
if(user.get("email") == zoho.loginuserid)
{
currentLoggedInUser = user.get("id");
}
}
info currentLoggedInUser;
How can fix this. Please give any suggestion
Thank you 
Raj