'Log the user out' from a list of users

I have a recursive backend workflow which processes a list of Users.

I want to log a User out if they don’t meet a condition butIi don’t have the ability to specify which User from the list gets logged out.

I feel like this is maybe more an oversight than a bug as the action is maybe assuming that the User to log out would be the ‘Current User’ in a straightforward frontend workflow?

But in this case I need to be able to specify that the User to be logged out is the first item in the list.

You can’t log a user out from the backend (as far as I know)…

You can only do it on the page…

So in your backend workflow you’re downgrading the User, so just use whatever marker you use to differentiate between User types to run a conditional workflow on your pages, then put the ‘Log User Out’ action there (or better still in a reusable element like a header that’s on every page).

Then as soon as a user is downgraded, they will be logged out.

1 Like

Thanks! I actually already have that condition in one of my headers, guess i’ll just stick with that for now.

1 Like

This topic was automatically closed after 14 days. New replies are no longer allowed.