I need to know the list of all users connected live to the system.
I am able to fetch the users detail using ioreg -d1 -c IORegistryEntry -a
and look for IOConsoleUsers
. But this doesn't provide information regarding the users connected via native screen share app of Mac. How can we get this detail via command line or using some files ?
Thanks in Advance, Abhilash Vaidhya