Export Sitecore Users to a File                               Here is a piece of code which I have written to export Sitecore users to a .csv file. This code reads the list of Sitecore users using UserManager's GetUsers method. See if it helps you.         	using Sitecore.Shell.Framework.Commands; 	using System; 	using Sitecore.Web.UI.Sheer; 	using System.IO; 	using Sitecore.SecurityModel; 	using System.Text; 	using Sitecore.Diagnostics; 	namespace SitecoreCustom.Web.Extensions.Commands 	{ 	public class ExportSitecoreUsers : Command 	{ 		string filepath = string.Empty; 		public override void Execute(CommandContext context) 		{ 			try 			{ 				CreateFile(); 				if (!string.IsNullOrWhiteSpace(filepath)) 					SheerResponse.Download(filepath); 			} 			catch (Exception ex) 			{ 				Log.Error(ex.Message, ex); 				SheerResponse.Alert("Error Occurred: Please try again"); 			} 		} 		///  		/// Create csv file with list of users. 		///           		private void CreateFile() ...