i've created a custom lightning component with a lookup field to the Account. The lookup works fine with my Sys Admin user, however with the guest user profile it does not work, seems like that profile does not have access to the Account object.

The community is public. I've already gave access to Account to that profile (read, write, all fields and record types) Ive already changes the Sharing settings to external access for Accounts and Contracts to Public read/write

  • Are you accessing via Apex or some other way? If it's Apex, make sure the profile has access to that class. Commented Dec 21, 2021 at 18:20
  • yes its from APEX, the class is without sharing. I also tried to check the available profiles for that class security and the Community profile is not one of the options. I added them all there and yet no luck Commented Dec 21, 2021 at 19:05
  • Take a look at learnexperiencecloud.com/s/article/… , it probably has the answer to your question.
    – identigral
    Commented Dec 21, 2021 at 19:12
  • yes ive also created that sharing rule the thing is actually deeper, it cannot only access the Account records, Im trying to access the object describe methods (Schema.describeSobjectresult) and its returning null Commented Dec 21, 2021 at 19:22
  • I think Victor's comment was a good one, since all the returns from APEX calls are returning null, it appears that the community profile does not have access to the class. However, how can I give this permission since the profile is not show on the APEX class security profile list? Commented Dec 21, 2021 at 19:59

1 Answer 1


after writing my last comment I was able to find the solution which was actually the permission to the class (Victor's comment). However since the profile was not on the class list, I had to go to the profile and click on the top button: Enabled Apex Classes

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .