← back to the release
new featureFlow Builder

Enforce User Permissions No Matter How a Flow Runs

A new run context, User Context - Enforces User Permissions, guarantees that a screen flow or autolaunched flow always executes with the running user's access level even when it is invoked by Apex, another flow, or automation running in system context. Previously a user-context flow could inherit elevated permissions from a system-context caller. This option applies only to flows running on API version 68.0 or later and is set under Show Advanced > How to Run the Flow.

identifiers
User Context - Enforces User PermissionsHow to Run the Flow
metadata types
Flow
api versions
68.0
flags
off by defaultno action requiredmin api 68
how
In Flow Builder, click Save, click Show Advanced, and under How to Run the Flow select User Context - Enforces User Permissions.
who
when
where
Professional, Enterprise, Performance, Unlimited, and Developer editions.
read it on salesforce.com