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?
-
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]
Howdy, Stranger!
Categories
- 2.1K All Categories
- 17 General
- 154 Installation / Setup
- 988 Flows
- 86 Rules
- 199 Administration
- 203 Portal
- 429 General Q & A
- 596 Forms
- 282 Reports
- 3 Designer Extensions
- 38 Example Flows
- 32 CSS Examples
- 1 Diagram Tile
- 5 Javascript Controls
- 137 Pages
- 1 Process Mining
- New Features
- 147 Datastructures
- 49 Repository
- 165 Integrations
- 25 Multi-Tenant
- 21 SDK
- 39 Modules
- 36 Settings
- 19 Active Directory
- 12 Version 7
- 34 Version 8