Hi Laura ,
There can be many users on the mendix application “multiple sessions” at the same time , not sure but an idea is to store the logged in username in a separate entity with the time / date after login.
The rest api can retrieve data from this entity either the latest or all based on what you need .
Regards,
Sufian.
Do you want a list of logged in users? Or a list of all users in the application? Both are possible.
You can retrieve a list of logged in users via the session entity and give this list as repsonse via the REST service.
Otherwise, when you want all the users, you can just retrieve a list of all user and give this list as repsonse via the REST service.