#SalesforceSummer21 – Run Apex Code in User Mode (Pilot)
#1MinuteTip #SalesforceSummer21 By default Apex code executes in system mode and doesn’t respect running user permissions. To enhance the security context of Apex, you can specify user-mode access for database operations by invoking Apex in user mode. The field-level security (FLS), sharing rules, and CRUD permissions of the running user are respected in user mode, unlike in system mode.
Available as pilot, you can now declare when Apex runs database operations in user mode or system mode.
References & Useful URLs
- Salesforce Summer ’21 Release Notes – https://sforce.co/3kLohLt