I can get the last login date of a specific user using OnlineStatusModule, but is it possible to query users by last login date? I want to create a scheduled task that reminds users to login and deletes users who have passed certain thresholds in inactive time.
Any ideas? I suppose I can just create my own attribute and update it when the user logs in, and then loop through all users when the scheduled task runs to check what users have not logged in lately. But it seems a bit crude...