You could either use the list of scanned user logons or alternatively consider using
asset user relations. These are stored in table
tblAssetUserRelations after manually entering them on asset pages. You could filter on the date when an asset user relation was created.
If you prefer using the first method, please find an example report below which lists computers onto which more than one user logged on during the last 30 days. Please note that a computer needs to be scanned while a user logs on to it in order to have correct data in your Lansweeper database.
Select Distinct Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Username As [last logged on user],
tblAssets.Lastseen
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join (Select tblCPlogoninfoDistinct.AssetID,
Count(tblCPlogoninfoDistinct.Username) As [number users]
From (Select Distinct tblCPlogoninfo.AssetID,
tblCPlogoninfo.Username
From tblCPlogoninfo
Where tblCPlogoninfo.logontime > GetDate() - 30) tblCPlogoninfoDistinct
Group By tblCPlogoninfoDistinct.AssetID
Having Count(tblCPlogoninfoDistinct.Username) > 1) tCPlogoninfo
On tblAssets.AssetID = tCPlogoninfo.AssetID
Where tblAssetCustom.State = 1
Order By tblAssets.AssetName