function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Austin VillanuevaAustin Villanueva 

ASAP!!!! 0 result with SOQL from different user authentication through CONNNECTED APP WHY??? but the HOST user can access data

Why I got zero result in other account when I'm accessing other's connected app? I'm using SOQL with the host user account and I get the right result but when I use other account I succeeded in authentication with the right clientId and right clientsecret but when I do SOQL I got this 

{
    "done": true,
    "records": [],
    "totalSize": 0
}

When I'm using the HOST account which is the creator of the connected app I get the right result. Also, I put the "FULL ACCESS" when authentication is success and yet no result.

Can somebody help me? I use two developer's edition account.

 
APatAPat
Hi Austin,

The "Other Account" need to have correct Object Level Access. If it does not have access at profile level, then you will not get the corect data.

I recommend that you create a permission set with appropriate access on Account object and grant it to your integration user.

Hope this helps!