Override the default run context of a flow to control what data it can access. Run a
flow in system context with or without sharing, or enforce user-level access regardless of the
caller.
Required Editions
| User Permissions Needed |
| To open, edit, create, activate or
deactivate a flow using all flow types, elements, and features available in Flow
Builder, including Einstein and Agentforce for Flow: |
Manage Flow |
- Open the flow in Flow Builder.
- Click
.
- Click Show Advanced.
- In the How to Run the Flow dropdown, select a context.
- User or System Context—The context is determined by how the flow is launched.
- User Context–Enforces User Permissions—The flow always runs with the
running user’s access level, even if its caller runs in system context. This option
is available for screen flows and autolaunched flows on API version 68.0 and
later.
- System Context with Sharing—The flow respects org-wide default settings, role
hierarchies, sharing rules, manual sharing, teams, and territories. But it doesn’t
respect object permissions, field-level access, or other permissions of the running
user.
- System Context without Sharing—The flow can access all data.