On each computer the last logged on user is stored under
tblAssets.Username and
tblAssets.Userdomain in the database. We don't automatically create asset-user-relations. If you would like to create these automatically, you might be able to do this with an SQL script under
Configuration\Database scripts, section
Database scripts. However, we can't provide full support for this.
Alternatively consider using a custom report which lists items related to the last logged on user, like this example:
Select Top 1000000 tblAssets.AssetID,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.AssetName,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.Lastseen,
tblAssets.Lasttried,
tsysAssetRelationTypes.Name As Connection,
tConnected.AssetName As [Connected asset]
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Left Join tblAssetRelations
On tblAssets.AssetID = tblAssetRelations.ParentAssetID
Left Join tblAssets tConnected On tConnected.AssetID =
tblAssetRelations.ChildAssetID
Left Join tsysAssetRelationTypes On tsysAssetRelationTypes.RelationTypeID =
tblAssetRelations.Type
Where tblAssetCustom.State = 1 And Coalesce(tblAssets.Username, '') <> ''
Order By tblAssets.Username,
tblAssets.AssetName,
[Connected asset]