Log Out Active Non-Admins With Maintenance Mode

Log Out Active Non-Admins With Maintenance Mode

Comments

  • After turning on maintenance mode, it stops non-admins from logging into the server, but accounts that were already logged in before maintenance mode was turned on arent automatically logged off. Is there a way I can force all active non-admins on the server to log off?

  • Unknown
    edited November 2023

    In order to force all non-admin active users to get logged off from the server, you can do so using a custom flow. The Active Users report is found under System -> Administration -> System Tools -> Event Viewer, then clicking on Active Users at the top of the page. This report contains all users who are currently logged in. In order to logout an account, you can use the Logout By SessionID step, located under Integration -> Internal Services -> AccountService. To get the SessionID, edit the Active Users report to include the SessionID field, and use the Run Report step in your custom flow. Then for each active user, if they dont belong to the administrator group, log them out using the Logout By SessionID referenced earlier.

    Below is an example flow for demonstration purposes. The flow export is also attached to this post.

    *Please Note: The examples attached were developed to be instructional, and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact: [url=mailto:services@decisions.com]services@decisions.com[/url]

Sign In or Register to comment.