Hey,
I personally use application insights, it’s not part of UD 2.9 or lower, but it still can be acheived
or, if you’re using universal 1.2 or up it’s been implemented and you just need to add your instrumentation key into the appsettings.json file.
If you cant use app insights or dont have it you could try putting some code that writes to sql every time someone authenticates - in your auth policies. (premium/enterprise edition required)
Alternativly you could run a scheduled endpoint and push all active users to a log file.
I actually display active users on one of my pages using this code:
[UniversalDashboard.Server]::Servers.DashboardService.EndpointService.SessionManager.Sessions.values | ? {$_.connections -ne 0} | select Username,LastTouched