How to get information about to whom a token belongs to?
How to get information about to whom a token belongs to?
Zoho doesn't share any user information in /oauth/v2/token/response.
To get information about a user you need to make a GET request to the api https://profile.zoho.com/api/v1/user/self/profile with the header name Authorization and header value as Zoho-oauthtoken<space><access token value you got>.
While generating tokens include the scope zohoprofile.userinfo.read in the scope parameter for /oauth/v2/auth.