Hi All,
So im developing a hierarchy settings for some table with this configuration

so dealer can only access their record, distributor can see the dealer below it but not from the other distributor, and admin can see all of the records, keep in mind dealer is like team or business unit.
the settings on table will be like this

if the dealer lookup is null, then the user is distributor, lookup will be used for parent access system
This what looks like in Portal Table Permission


The filter works, now list will be filtered by own team, but the problem is, i need to do some web api to get some data and have this error

anyone know why this is happen or maybe the solution from this one?
Thanks!