User format
<tr>
<td>%asset_assetid%</td>
<td>%asset_attribute_username%</td>
<td>%asset_attribute_email%</td>
<td>%asset_attribute_login_date^date_format:j F Y% (/your preferred date format)
</tr>
Sorting
Asset Attribute Value > User > Login Date
Depending on the syntax of your usernames I would also throw in an %asset_short_name% column or similar for more readable names.
To filter logins from the last 12 months using matrix keyword modifiers, you could do something like below (… though there is probably a simpler method):
The initial condition checks that there is a last login date to compare - null values seem to output -------- for the date component.
The date modifier U converts the date to a unix timestamp.
The subtracted value 31536000 = 1 year in seconds to make it equal to the timestamp units.
For a different time period just calculate the total seconds (eg a year = 60 secs * 60 mins * 24 hours * 365 days).
Then if the last login date is greater than or equal to the current date minus 1 year than the user name is printed.
It might also is easier to implement using server side JS…
Thanks
Peter
Easiest thing would be to asset list all your users and sort them by last login date, and then maybe group by last 12 months somehow, or use keyword modifiers to hide all other results. If you have thousands of users though, this list generation might time out and you might have to use a search page instead.
Unfortunately there is no way to differentiate a login between /_edit and /_admin, but if your Edit+ users are all Simple Edit Users, then you could limit your listing to just that user type.