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
- 4.1K All Categories
- 61 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 260 Administration
- 212 Portal
- 489 General Q & A
- 693 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 219 Integrations
- 28 Multi-Tenant
- 27 SDK
- 76 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 66 Lunch And Learn Questions