Script to generate an active users report as CSV