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
Vijaya Lakshmi 187Vijaya Lakshmi 187 

Guest User cannot access @AuraEnabled Apex Controller

I have a community portal and It seems that the Guest User is not able the records if the User has access to the objects, the visualforce page and the Apex class controller. Is there any permission I need to add?
Best Answer chosen by Vijaya Lakshmi 187
ShirishaShirisha (Salesforce Developers) 
Hi Vijaya,

Greetings!

This could be because of the critical update called "Restrict Access to @AuraEnabled Apex Methods for Guest and Portal Users Based on User Profile".

Please double check,if they have access to the Apex classes if it is enabled.

Refer the release notes (https://releasenotes.docs.salesforce.com/en-us/spring20/release-notes/rn_lc_restrict_apex_guest_users.htm) for more updates.

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri