var keystone = require('keystone');
var csv = require('csv');
var User = keystone.list("User");

exports = module.exports = function (req, res) {
	User.model.find(function (err, results) {
		if (err) { throw err; }

		var users = results.map(function (user) {
			return {
				firstName: user.name.first,
				lastName: user.name.last
			};
		});

		csv.stringify(users, { header: 1 } , function (err2, data) {
			if (err2) { throw err; }

			res.set({"Content-Disposition": "attachment; filename=\"users.csv\""});
			res.send(data);
		});
	});
};

var keystone = require('keystone');
var csv = require('csv');
var User = keystone.list("User");

exports = module.exports = function (req, res) {
	User.model.find(function (err, results) {
		if (err) { throw err; }

		var users = results.map(function (user) {
			return {
				firstName: user.name.first,
				lastName: user.name.last,
				email: user.email
			};
		});

		csv.stringify(users, function (err2, data) {
			if (err2) { throw err; }

			res.set({"Content-Disposition": "attachment; filename=\"users.csv\""});
			res.send(data);
		});
	});
};

--- 
+++ 
@@ -9,11 +9,12 @@
 		var users = results.map(function (user) {
 			return {
 				firstName: user.name.first,
-				lastName: user.name.last
+				lastName: user.name.last,
+				email: user.email
 			};
 		});
 
-		csv.stringify(users, { header: 1 } , function (err2, data) {
+		csv.stringify(users, function (err2, data) {
 			if (err2) { throw err; }
 
 			res.set({"Content-Disposition": "attachment; filename=\"users.csv\""});
Add header row and remove email column
