#SalesforceSummer21 – Run Apex Code in User Mode (Pilot) : Ashish Agarwal

#SalesforceSummer21 – Run Apex Code in User Mode (Pilot)
by: Ashish Agarwal
blow post content copied from  Ashish Agarwal – Independent Salesforce.com Architect & Blogger
click here to view original post


#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.

Reference URLs:

The post #SalesforceSummer21 – Run Apex Code in User Mode (Pilot) appeared first on Ashish Agarwal - Independent Salesforce.com Architect & Blogger.


July 13, 2021 at 03:30AM
Click here for more details...

=============================
The original post is available in Ashish Agarwal – Independent Salesforce.com Architect & Blogger by Ashish Agarwal
this post has been published as it is through automation. Automation script brings all the top bloggers post under a single umbrella.
The purpose of this blog, Follow the top Salesforce bloggers and collect all blogs in a single place through automation.
============================

Salesforce