Share a Flow
A flow belongs to one organization unit, and that unit can share it with the organization units beneath it. A shared flow is not copied or forked. The owner declares the variables of the flow, and sets the terms on which each organization unit the flow is shared with uses them.
How Sharing Works
- The owner declares the variables. A Resolve Variables step in the flow declares them, and steps after it read them. Every route to the Resolve Variables step passes a Resolve OU step, which picks the organization unit whose values the variables resolve to.
- The owner shares the flow and sets terms. For each variable, the terms say whether an organization unit may set its own value, the value it starts with or is locked to, and, for a Select or Connection variable, the choices it may pick from. This is the same sharing policy that other resources use, with the same reach rules.
- The flow resolves each variable at run time to the value the organization unit set itself, the value the terms give it, or the default of the owner, in that order. The organization unit is the one the Resolve OU step picked, not the unit that owns the flow or the one that owns the application. Its values apply only when the application belongs to it or was shared with it. An organization unit that the application does not reach runs on the owner's values.
A variable that no term names is not editable: every organization unit uses the flow's default for it.
Before You Start
- Save the flow at least once. The Share button appears only on a saved flow.
- To offer terms, add a Resolve Variables step to the flow and declare its variables. A flow without variables can still be shared, but there is nothing for the organization units to set.
- To see the variables as a delegated admin of a child organization unit will see them, select the Resolve Variables step and click Preview.
Share the Flow
- Go to Flows and open the flow.
- Click Share in the flow builder header. The Share flow view opens.
- Under Who can use the flow, select the option that starts with the name of the flow's organization unit and ends in and chosen organization units.
- Under Child organization units, select who gets the flow:
- All child organization units: every organization unit under the owner, now and later. To leave some out, add them under Except.
- Selected child organization units: click Grant access, select each organization unit in the Grant access to child organization units dialog, then click Grant access. Only organization units directly under the owner can be picked. Set each one's reach to Only this OU or Include all OUs below.
- Set the terms for the variables. See Set the Terms.
- Click Done.
- Click Save in the flow builder. Sharing changes are saved with the flow, not in the Share flow view.
If an Organization unit default you entered is not valid for its variable, Save is disabled until you fix it in Share.
Saving a change does not make it live. You author in the control plane, and your users sign in on a separate data plane, so a change takes effect in an environment only after you deploy it. Go to Deploy, deploy the latest version to your first environment, then promote it to the next environment when you are ready.
Auto-sync deploys saved changes to your first environment within seconds. Turning it on is your choice, per project. See Deploy a Version, or learn why you deploy and how auto-sync works.
Set the Terms
Where you set the terms depends on who gets the flow:
- With All child organization units, the terms are under Terms for every granted child organization unit and apply to every organization unit the flow reaches.
- With Selected child organization units, each granted organization unit keeps its own terms. Click Edit terms in its row. To fill in the same terms for all of them at once, click Set starting terms, fill them in, then click Copy to n organization units. If some organization units already have their own terms, click Replace to overwrite them. After the copy, each organization unit keeps its own copy, which you change from its row.
For each variable, expand its row and set:
- Editable: turn on to let organization units set their own value. Turn off to lock the variable.
- Choices they may pick from: for a Select or Connection variable that is editable, the choices organization units may pick. Leave it empty to allow every choice.
- Choices taken away: choices removed from the ones above.
- Organization unit default: the value organization units start with when the variable is editable, or always use when it is locked. Leave it blank to use the flow's default. An editable variable's default must be one of the choices the organization units may pick.
The row of each variable sums up its terms, for example that organization units always use the flow's default and can't change it.
What an Organization Unit Sees of a Shared Flow
A shared flow shows its variables and nothing more. The steps and their layout stay with the owner. When an administrator of an organization unit opens a flow shared with it, the Console shows that the flow is shared into the organization unit and that its steps can't be shown or changed there.
An organization unit sees the value that applies to it: the value its terms set, or the owner's default when they set none. It does not see what the owner holds beyond that, such as choices it may not pick or variables that no term names for it. Of the connections, it sees only those its own organization unit owns or has been shared.
The Console does not let an organization unit set its own values for a shared flow's variables. Until a value is set for it, an organization unit runs on the value its terms set, or on the owner's default.
Values
A variable holds one value of its own type, such as a checkbox, a number, a piece of text, or a connection, and always has a value in the flow. A flow therefore resolves for an organization unit that sets nothing.
A connection that the terms name must be one the owner's organization unit owns or has been shared, so a unit cannot pass on a connection it cannot use itself. The Console offers only those connections. The flow's own default is not checked this way, so a flow shared with an organization unit keeps running with the connection the owner chose.
A Connection variable can have no default, which means no connection is set. An organization unit with no connection then cannot run the flow, and the flow ends with an error that asks the user to contact their administrator. The error comes when the Resolve Variables step runs, after the organization unit is picked. Use this when each organization unit must have its own connection instead of falling back on the owner's. The owner's own applications run the flow with the empty default too, so they stop with the same error.
When you lock a variable that organization units could set, the values they saved for it are dropped. A later change to the flow, such as a lower maximum, is then not refused over a value the organization unit could not clear.
Change or Remove a Variable
When you remove a variable, or delete the Resolve Variables step that declares it, the Console warns that the sharing terms and the values organization units saved for it are deleted when you save, and that the steps using it are unbound. Nothing is left that refers to a variable that no longer exists. If you removed a variable while the Share flow view had unsaved changes, those sharing changes are discarded. Share the flow again.
A change to a variable that the flow keeps, such as a new type or fewer options, is refused on save when it breaks the terms you set or a value an organization unit saved.
Related Guides
- Resource Sharing - How a sharing policy reaches other organization units
- Flow Concepts - How flows are built and owned
Was this page helpful?