I’m looking for a way to ‘force logout’ a user or all users. In my use case, I have a type in my user database for ‘active’ and ‘inactive’ users. I can disable accounts by doing so. However, I don’t want to have to wait until that user or users logout for them to not be able to get back in.
Anyone have tips or a solution to this? Would also be useful for my clients, as they will have users that they manage and may want to do the same.
You can make a change to a list, all users, and then update their fields to inactive. Just create a workflow in an “admin” page that only you can view. Hope this is helpful.
Thanks for the reply. I have this in place already… only problem with this way is that if a user is logged in, they will remain logged in until they close the browser or logout. Then, when they try to log back in they will have access denied.
@lantzgould With @J805’s setup, you could also create a redirect workflow on each page (or once, inside of a reusable element that’s on each page). The redirect workflow could be: When Current User’s “Inactive” is "yes -->
Go to the “Inactive” page
That should prevent them from accessing/using the other pages in the app. The “inactive” page could then contain a text stating “Your account is inactive. Click below to return to the homepage”. That button could log them out officially, and take them to the app’s landing page.