As a bonus this is also more WU-efficient.
But I don’t like having everyone be able to search the users.
Here is an alternative using 2 workflows that’s actually more secure IMO:
Workflow 1: When user is logged in → Log the user out (1 action)
Condition: User’s role is Cancelled
Workflow 2: When page is loaded → Go to page (1 action)
Condition 2: User’s role is Cancelled
Both of these workflows operate serverside.
You should also have role-based conditions on EVERY workflow (backend included).
1 Like