Skip to content

User: switch current account

Plugin ID: eca_switch_account

Available since: 1.0.0

Switch to given user account. Everything after this action runs with the permissions of that account, not with those of the user who triggered the model. ECA does not check any permission before the switch, so restricting it is part of the model: make sure the triggering event and the conditions in front of this action cannot be reached by an account that should not be able to cause the switch.

Note: the changed user account is only active in all successors of the user switch action and will be reset to the previous user accounts when leaving this context.

Fields

<em>Restricting this action is part of the model.</em> Everything after it runs with the permissions of the account being switched to, not with those of the user who triggered the model. ECA does not check any permission before the switch, because switching is the very purpose of this action. Make sure that the triggering event and the conditions in front of this action cannot be reached by an account that should not be able to cause the switch, for example by adding a role or permission condition before it, and grant the account being switched to only the permissions that the model actually needs.

User ID (UID) — config key: user_id

The numeric ID of the user account to switch to.
This field supports tokens.

Type: textfield · Required: no · Default: empty string