Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Run Flows That Bypass User Permissions
Where: This change applies to Lightning Experience and Salesforce Classic in Essentials, Professional, Enterprise, Performance, Unlimited, and Developer editions.
Why: Normally, how a flow is launched determines whether the flow runs in the context of the user or the system. In a previous release, we added the ability to bypass the running user’s permissions by setting a flow to run in system context with sharing. While these flows ignore object- and field-level security, they still respect org-wide default settings, role hierarchies, sharing rules, manual sharing, teams, and territories.
Now you can set your flow to run in system context without sharing. Use this mode when you want to escalate a user’s privileges as they move through, but not outside of, a flow. For example, allow guest users to edit records that don’t belong to them, but only when they follow the steps defined in the flow.
When you run a flow in system mode without sharing, a limited set of actions and operations still run in user mode. For example, the Post to Chatter standard action continues to run in user mode.
How: When you’re saving a new flow, click Show Advanced. For How to Run the Flow, select System Context Without Sharing—Access All Data.
To select the same option for an existing flow version, click the icon.