How to get current logged-in users data to the system using Mendix Service Console or some other way?

0
Hi, My application is running on server. I am using Mendix service console to update the application. Before going to update the app, I need to stop service. If someone is already logged-in to the system, then it will become a problem for them if I stop the server to update the app. So, is there any way to find current logged-in users data or where can I see the logged-in users list in Mendix? I want to know current logged-in users to the system. Is it possible to get the users data from Mendix service console? or do we have any others ways to find it. 
asked
2 answers
0

Hi Venkatesh,

In your app overview you have the enviroments tab in which you can click through 'Details’ . In this case you will find on the right-side a button which will show you the people that are logged in by username. 

See screenshot below:

answered
0

I don’t think it’s accessible directly in the service console. There are 2 ways to do this:

  1. Add a page in your Mendix app that shows a list of System.Session. I believe there is a default page in the Administration module.
  2. Use a script to access the admin port of the runtime.Here’s a forum post talking about accessing it: https://forum.mendix.com/link/questions/85804 And here is some documentation on the admin port api: https://docs.mendix.com/refguide/monitoring-mendix-runtime
answered