Restrict Access to @AuraEnabled Apex Methods for Guest and Portal Users Based on User Profile (Update, Postponed)
Where: This change applies to Aura components, Lightning web components, and flows in Lightning communities, portals, and Salesforce Sites.
When: This update is enforced when a sandbox or production org is upgraded to Winter ’21. Enforcement starts for some sandboxes on August 9, 2020. To get the major release upgrade date for your instance, go to Trust Status, search for your instance, and click the maintenance tab.
Why: When this update is activated, a guest, portal, or community user can access an @AuraEnabled Apex method only when the user’s profile or a permission set allows access to the Apex class. This update enforces user profile and permission set restrictions for Apex classes used by Aura and Lightning web components.
How: To test this update, we recommend working in a sandbox. After August 12, you can continue to activate or deactivate the update from Release Updates in Setup until the update is automatically enforced when your org is upgraded to Winter ’21. After August 9, you can no longer activate or deactivate the update from Critical Updates in Setup.
- From Setup, enter Release Updates in the Quick Find box.
- Select Release Updates (Beta).
- Find “Restrict Access to @AuraEnabled Apex Methods for Guest and Portal Users Based on User Profile” and click View Details or click Get Started.
- Test that custom Aura components, Lightning web components, and flows that you’ve developed are working correctly for guest, portal, and community users.