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.


    Zoho DataPrep Personalized Demo

    If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

    Zoho CRM Training

      Create, share, and deliver

      beautiful slides from anywhere.

      Get Started Now





              Zoho CRM Training Programs

              Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

              Zoho CRM Training

                  Zoho SalesIQ Resources



                      Zoho TeamInbox Resources




                                Zoho DataPrep Resources

                                  Zoho DataPrep Demo

                                  Get a personalized demo or POC

                                  REGISTER NOW


                                    Design. Discuss. Deliver.

                                    Create visually engaging stories with Zoho Show.

                                    Get Started Now











                                                          • Related Articles

                                                          • What to do when error occurred during access token generation?

                                                            The endpoint /oauth/v2/token supports only POST request. Request you hit directly from the browser is a GET request. Since token generation requests contain sensitive information like client secret and refresh tokens, GET request is not allowed. ...
                                                          • How to automate OAuth token generation without browser intervention?

                                                            Case 1 When you develop applications to source your own information, you won't have any proper redirection URLs. In that case, you can use Self Clients to get an authorization grant code. This one-time code can exchanged for an access token and a ...
                                                          • I'm unable to find the refresh token in the HTTP response I received.

                                                            Follow the below steps to generate refresh tokens if you find it is missing in the HTTP response: To generate a refresh token for the first time, include  access_type=offline in /oauth/v2/auth to get refresh token along with the access token as a ...
                                                          • How do I edit my personal details?

                                                            Go to accounts.zoho.com (or) open the profile panel from your app, then click My Account. Click Profile, then click Personal Information. Click Edit and update your details. Click Save.
                                                          • How do I upload a profile picture for my Zoho account?

                                                            Go to accounts.zoho.com (or) open the profile panel from your app, then click My Account. Click Profile, then click Personal Information. Click on the profile picture next to your name. Click Upload New. Browse and select a photo. Select who can view ...

                                                          Resources

                                                          Videos

                                                          Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                          eBooks

                                                          Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                          Webinars

                                                          Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                          CRM Tips

                                                          Make the most of Zoho CRM with these useful tips.



                                                            Zoho Show Resources