Updated assignedList function to get list of active users