T-SQL query to list logged in users

I'm looking for a T-SQL query to list logged in users and when they last logged in. Or, list all users and their login status.

EDPM version is 2015.

SolidworksSolidworks Pdm enterprise Pdm