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
Kr. Rohit YadavKr. Rohit Yadav 

Apex class access issue with multiple Profile : Summer 22 release

Hi,

We are facing many issue related to apex class access across multiple profile. This issue started just after summer22 release patch. Our org is impacted any many users with different profile are complaining that they are getting error message while accessing some component. In error msg it shows that you dont have apex class access. And when we are adding those apex class in their profile access, issue is gone. But I want to know where this issue coming from? I am not sure if any recent update has created this issue.

Please help.
Best Answer chosen by Kr. Rohit Yadav
SwethaSwetha (Salesforce Developers) 
HI Rohit,

Are these apex classes invoked from flow? After Summer 22 release "If a flow invokes Apex, the running user must have the corresponding Apex class assignment in their profile or permission set. All flows that invoke Apex classes will be impacted. Admins may need to adjust profiles or permission sets for users who run flows that invoke Apex classes.

https://help.salesforce.com/s/articleView?id=release-notes.rn_forcecom_flow_cruc_security.htm&type=5&release=226

Since 'Run Flows' permission will no longer be there with Summer 22 release, it requires these Apex Classes to be added explicitly at the Profile level. The change is done with 'Run Flows' permission not with this Apex Class permission thing.


In the other case, check the release update "Restrict Access to @AuraEnabled Apex Methods for Guest and Portal Users Based on User Profile."

If this information helps, please mark the answer as best. Thank you