I am trying to create an advanced SQL Query using the template for User History which is on the Orion Report Writer:
SELECT TOP 10000 UDT_UserHistory.UserName AS UserName,
UDT_UserHistory.LogonDateTime AS LogonDateTime,
UDT_UserHistory.IPAddress AS IPAddress,
UDT_UserHistory.DNSName AS DNSName,
UDT_UserHistory.DaysBeforeLogin AS DaysBeforeLogin,
UDT_UserHistory.UserID AS UserID
FROM
UDT_UserHistory
ORDER BY 1 ASC, 2 DESC
I would like to also include information about the user such as AD username & Department. If anyone has any ideas or a custom report they could share that would be great.
Thank you,