Hi Allen, how are you?
Here is a simple script that maybe can help you.
The same uses a dynamic management view of the SQL server
`USE [<dbname>] ---> Database Name
go
SELECT DISTINCT login_name
FROM sys.dm_exec_sessions
WHERE last_request_start_time >= DATEADD(week, -1, GETDATE())`