Manage the systemd login manager. More information: https://www.freedesktop.org/software/systemd/man/loginctl.html.
loginctl list-sessions
loginctl show-session session_id --all
loginctl show-user username
loginctl show-user username --property=property_name
loginctl
operation on a remote host:loginctl list-users -H hostname