0

I created a force.com Site, which uses a LWC in Visualforce page. It seems that the Guest User cannot read the records and even if I preview as admin the Site still the records are not showing. Guest User has access to the objects, the visualforce page and the Apex class controller. Is there any permission I need to add? TIA.

2
  • Do the guest users have access to records? Is there any guest sharing rule created to share records with guest users?
    – manjit5190
    Oct 3 '20 at 8:34
  • Hi thanks @manjit5190 for your comment. I resolved this by adding a standardController in visualforce page. Thanks
    – Duan
    Oct 3 '20 at 8:45
3

There is a critical update called "Restrict Access to @AuraEnabled Apex Methods for Guest and Portal Users Based on User Profile".If you have this critical update enabled in your org then the guest users will not be able to access the @AuraEnabled apex classes unless you give the access on profile level.

Please refer the release notes to see the same for more information.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.