assign_to method on a UserFlow.
You start by instantiating the UserFlow class in your flow definition.
Python
UserFlow, configure user assignment by calling the assign_to method and passing the required parameters.
The assignment policy that controls who receives the user activity. Supported options include:
UserAssignmentPolicy.FLOW_INITIATOR: Assigns the user flow to the user who initiates the flow. If you do not explicitly set aUserAssignmentPolicyor run the flow in Preview mode, the initiator receives the user flow.UserAssignmentPolicy.USER: Assigns the user flow to one or more users specified in the assignees parameter.
An expression that resolves to the user or users who execute the user activity. This parameter is required when you set the policy to
UserAssignmentPolicy.USER.
You can provide the expression in one of the following forms:-
A JSON array with a single user ID string.
Example:
'["123002B12G"]' -
A flow variable path that references a user.
Example:
flow.private.employee.managerIn this case, manager has the User type.
Python
Python

