Log Out Inactive user (server side)

I found a post about how to do it manually.

You could combine it with this strategy to allow automation, but users’ passwords need to be reset so it might not work for you.

Aside from this I know no other way to logout other users in an automated way, sadly.