How to get list of online users in an expression rule

Certified Senior Developer

I want to assign task to only users who is currently online. To do so, i need to find list of currently online users. I can see the list in Admin console but i do not see any function or possible way to get the list as output of expression rule. Any suggestions?

  Discussion posts and replies are publicly visible