I've created an EA with the script
#!/bin/bash
echo "$(mdls "/System/Applications/Utilities/Terminal.app" -name kMDItemLastUsedDate | awk '{print $3}')"
and running it on my device, it returns
2024-12-12
as expected. I then created a Smart Group with Criteria <Name of EA>, Operator 'after (yyyy-mm-dd)' and Value '2024-01-1'. Jamf returns a list of devices but I do not believe this list is accurate, as it does not include my device when I've been using Terminal all morning.
Any suggestions on what could be happening or what I can do to improve its accuracy?