#1 2023-05-17 04:01:11

felipe
Member
Registered: 2023-05-11

Online Status of user in Reportserver can be seen by the admin

Hi, i want to ask if the admin can see which user is currently online at the moment / which user are logging in into the reportserver ? if can't how can i see it ? can i see it in the app or through logs ? thankyou

Offline

#2 2023-05-17 11:57:04

eduardo
Administrator
Registered: 2016-11-01
Website

Re: Online Status of user in Reportserver can be seen by the admin

Hi felipe,

you can try with this or similar scripts:

displayLoggedInUsers.groovy

import net.datenwerke.security.service.authenticator.*
import net.datenwerke.security.service.usermanager.*
import java.util.GregorianCalendar
 
def uservice = GLOBALS.getInstance(UserManagerService)
def diff = 1000*60*60
def now = new GregorianCalendar().timeInMillis
GLOBALS.getInstance(AuthenticatorService).lastRequests.collect({ key, value ->
    uservice.getNodeById(key)?.username + ", " + ((now-value)/1000/60) + " minutes ago\n"
}).join();

Regards,
Eduardo

Offline

Board footer

Powered by FluxBB