REST Model : Data not loading for a User, As a System Admin, table loads fine

  • 1
  • Question
  • Updated 3 years ago
  • Answered
Hi,

I have a REST Model, which gets data from a REST resource APEX class, which send a wrapper list in return.

When I run the page as System Admin login, it loads data fine.

But for some testing user, it doesn't show any data on page load, also on console the model data is empty for that user, when changed the filters, got an error saying "Filter Could not be applied"

Any ideas/suggestions on how to troubleshoot this one ?
Photo of KVin

KVin

  • 1,158 Points 1k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Does user have "API Access" in thier user record? 
Photo of KVin

KVin

  • 1,158 Points 1k badge 2x thumb
Yah Rob, User has.

But what happened is that (In Network tab on Console showing the Apex Class has no access) the profile has no access to the REST Class.
So I gave access to the class and solved the issue.

Thanks for your reply though. I will add it too for my check list.
It might help us while deploying.