Users.GetLoggedOnUsers
Method | |
---|---|
Module | Users |
Library | Core |
Action | List the active (currently logged-on) user sessions. |
Parameters | (None) |
Return values | For each session:
|
Example | @users = Users.GetLoggedOnUsers(); //get the home drive/path for each logged on user by running a command as each of them @home = FOREACH @user IN @users DO NativeServices.RunCommand(CommandLine:"CMD /c ECHO %HOMEDRIVE%%HOMEPATH%",AsUser:@user.Account); SELECT usr.*, cmd.Output AS Home FROM @user usr, @@last cmd; DONE; |
Platforms |
|
Notes | Although this method is provided for Android it usually does not return any data for Android Oreo (v8.0 and later). In these later version of Android such accounts must be explicitly granted visibility to the Tachyon Agent. This does not usually happen, in which case no data is returned. |