cancel
Showing results for 
Search instead for 
Did you mean: 

How to get list of all the logged in users?

pinkesh_gandhi
Champ in-the-making
Champ in-the-making
Hi,

I want to get the list of logged in users to handle some application specific task. Is there any way to do it?

Thanks in advance.
7 REPLIES 7

loftux
Star Contributor
Star Contributor
Hi,
the JMX interface will give you the logged in users.
What are you trying to achieve, do you need to list them for further processing?

pinkesh_gandhi
Champ in-the-making
Champ in-the-making
Hi,

I have some requirement like, If user is logged in then at a time he can't logged in again by same user name up to he logged out.
So I want the list of all logged in users to compare the user name who try to log in.

mmynsberghe
Champ on-the-rise
Champ on-the-rise
Hi,

the wiki says that jmx is only availble on enterprise. Is there an alternative for the community versions?

Kind regards
Mieke

jesterfett
Champ in-the-making
Champ in-the-making
I too would like to have the functionality to determine the current "logged in" users.  This would be helpful for instance if I had to take down the site for maintenance, I could easily determine if there were any active users.  I am currently using Community version 3.2r2.  I have looked at the auditing documentation and I don't believe that would be of assistance.  Is there a simple way to query the database, or am I over complicating things here?

zomurn
Champ in-the-making
Champ in-the-making
Alfresco didn't think about it since the application exist.
It doesn't exist such a (usefull) method in, e.g. AuthenticationService.
But pay attention to AuthenticationServiceImpl which contains a method getUsersWithTicket.
Then you can make dirty code (through spring bean) to go the information you want.
But I don't know even if this method is reliable to answer the question : Who is logged in ?

sydwellz
Champ in-the-making
Champ in-the-making
Surely this is an import feature. Is there any way to get the current users logged without the use of JMX?

mrgrechkinn
Champ in-the-making
Champ in-the-making
My solution, other options I have not found yet

https://forums.alfresco.com/en/viewtopic.php?f=4&t=41064