What's the best way to log out all users?

Is there a way to log all users out at midnight? I have around 5k users

Haven’t tried it by myself, but I think you’ll have to schedule API wf on a list of all users and use log out action there.

you can try, there’s a log out other users sessions action, add an only when and make it midnight.
I haven’t used it myself so i don’t know how exactly it works.

I’ve tried to follow the example from this article: Scheduling API workflows | Bubble Docs

However it’s only logging out the user that triggers the workflow. Any ideas on what I need to change to log out other users?