Detect User Login Across All Clients

You can use the runScript expression in a tag.
https://docs.inductiveautomation.com/display/DOC81/runScript