Hi,
Trying to get the username of the current logged in user on a shared device by calling mobicontrol.sharedDevice.currentUser.name but it always returns null.
This is the method used described in the documentation:
https://www.soti.net/mc/help/javascriptapi/en/mobicontrol.sharedDevice.User.html
For example i try with this:
mobicontrol.log.info("User logged in: " +mobicontrol.sharedDevice.currentUser.name);
But its only returns:![]()
In the WebConsole i see the user is logged in and i see the username:
Tested with Android Agent version 2025.1.2.1214
Have anyone got this working in JavaScript?
Regards
Robert