OAUTH_SCOPE_MISMATCH when attempting to find CRM User Record

OAUTH_SCOPE_MISMATCH when attempting to find CRM User Record

In my App, I want to look for records owned by a Zoho CRM user. Therefore, I am attempting to find the relevant CRM user details for the logged in Creator App user. The lookup I am using is:

userEmail = thisapp.permissions.loginUserEmailid();
userDetails = zoho.crm.searchRecords("users","(email:equals:" + userEmail + ")",v_Page,200,m_SearchParam);

This returns the following error:

{"code":"OAUTH_SCOPE_MISMATCH","details":{},"message":"invalid oauth scope to access this URL","status":"error"}

I my Connection I have checked the following two scopes:

ZohoCRM.users.ALL
ZohoCRM.users.READ

(Assuming these are the correct ones).

Looking for any assistance or insights. OR, if I am going about this the wrong way I welcome a better way to find CRM records owned by the logged in App User (Not portal users).


Many thanks!
Brenden

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now