Zoho API: Get the user that is making the request

主宰稳场 提交于 2019-12-04 16:52:47
John Smith

This is the right endpoint: https://accounts.zoho.com/oauth/user/info

It requires the aaaserver.profile.READ scope.

Example Response:

{
    "ZUID": 123123123123, 
    "First_Name": "Example", 
    "Last_Name": "Name", 
    "Display_Name": "Example Name", 
    "Email": "example@email.com"
}

I have tested this personally and can confirm that the text on their docs is wrong.

They say:

CurrentUser - To get the list of current CRM users

But in reality, that endpoint really does return a single user everytime, the user to whom the oauth token belongs. So it's not returning "a list of current CRM users", but rather "the currently logged in user" - exactly as you desire.

So your gut was right, and that endpoint will achieve what you are trying to do.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!