{"id":455,"date":"2010-06-25T16:27:00","date_gmt":"2010-06-25T20:27:00","guid":{"rendered":"http:\/\/www.digitalaccesspass.com\/doc\/?p=455"},"modified":"2014-03-01T22:36:06","modified_gmt":"2014-03-02T06:36:06","slug":"importing-users-in-bulk-into-dap","status":"publish","type":"post","link":"http:\/\/digitalaccesspass.com\/doc\/importing-users-in-bulk-into-dap\/","title":{"rendered":"Importing Users In Bulk Into DAP"},"content":{"rendered":"<p>DAP allows you to easily import users in bulk from an external system or database.<\/p>\n<p>Importing users in bulk is the same as adding users one at a time using the single-user-add feature. So whichever way you manually add users, DAP is going to all of the following&#8230;<\/p>\n<ol>\n<li>Create a new account for them using the email with which they&#8217;re being added<\/li>\n<li>Auto-generate a random, unique password for them<\/li>\n<li>Give them access to the product (into which they&#8217;re being imported or being added to)<\/li>\n<li>Send out the Welcome Email as per the product&#8217;s settings (this welcome email can be configured to send them the email &amp; password to the member&#8217;s area along with anything else you want)<\/li>\n<li>Add them to the autoresponder series configured for that product<\/li>\n<li>&#8230; and so on.<\/li>\n<\/ol>\n<p>When you do a single-user-add, all of this is done for that user in real-time. When you do a bulk-add, then all of the above happens for each user being imported, one at a time, when the DAP hourly cron job runs at the top of every hour. That&#8217;s the main difference.<\/p>\n<h3>Simple Import<\/h3>\n<h4>Prerequisites For Simple Import<\/h4>\n<p>1) You must have already created the DAP<strong> Product<\/strong> into which the users will be imported<\/p>\n<p>2) The user list has to be in a CSV (comma separated) format (one user per line)<\/p>\n<p>For doing a simple import of user data containing just email, first and\/or last name, the format of data (per user, per line) should be like this:<\/p>\n<blockquote><p><strong>Email,FirstName,LastName<\/strong><\/p><\/blockquote>\n<p>Email and FirstName are mandatory. But LastName is optional. So your user data row could be just&#8230;<\/p>\n<blockquote><p><strong>Email,FirstName<\/strong><\/p><\/blockquote>\n<p>Example:<\/p>\n<blockquote><p>Joe@example.com,Joe,Customer<br \/>\nJill@anothersite.com,Jill<br \/>\nBob@another.com,Bob,Member<\/p><\/blockquote>\n<h4>How to do the actual Import<\/h4>\n<p><a href=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2010\/06\/bulk-add-users.png\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-457\" style=\"border: 1px solid black;\" title=\"bulk-add-users\" alt=\"\" src=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2010\/06\/bulk-add-users.png\" width=\"569\" height=\"399\" srcset=\"http:\/\/digitalaccesspass.com\/doc\/wp-content\/uploads\/2010\/06\/bulk-add-users.png 813w, http:\/\/digitalaccesspass.com\/doc\/wp-content\/uploads\/2010\/06\/bulk-add-users-300x210.png 300w\" sizes=\"(max-width: 569px) 100vw, 569px\" \/><\/a><\/p>\n<ol>\n<li>Go to Users &gt; Add &gt; &#8220;Bulk-Add Multiple Users To A Product&#8221;<\/li>\n<li>Paste your CSV list into the large text area<\/li>\n<li>Select the Product into which you want to import the users<\/li>\n<li>Check the &#8220;Mark Users as Paid&#8221; checkbox if you want them to have &#8220;Paid&#8221; access to the content (just as if they are actual paying members). If you don&#8217;t check it, they will all have access as a &#8220;Free&#8221; user (instead of a &#8220;Paid&#8221; user), which means they will only have access to content within the Product that you have marked as &#8220;Free&#8221;.<\/li>\n<li>Click on the &#8220;Bulk Add Users&#8221; button. That will first save this entire list as a CSV file in your <strong>\/dap\/bulk<\/strong> folder on your site. And then, the next time the Hourly cron (dap-cron.php) runs, it will add them one by one to the product, and send them emails as per your Product set up. So if your Product has the &#8220;Thankyou-Email&#8221; subject and body filled out, it will individually send out each of the users that <em>thankyou<\/em> email.<\/li>\n<\/ol>\n<h3>Extended Import<\/h3>\n<p>DAP will also allow bulk import of users with extended profile information. This includes their existing password and other profile data as detailed in <a href=\"http:\/\/www.digitalaccesspass.com\/videos\/BulkAddUsersToDAP.php\">this video<\/a> (<a href=\"http:\/\/www.digitalaccesspass.com\/videos\/BulkAddUsersToDAP.php\" target=\"_blank\">Bulk Add Users<\/a>)<\/p>\n<p>But please make sure you are using at least <strong>DAP v4.2.1 and LiveLinks v1.7<\/strong>, because what&#8217;s explained below is only available only since then.<\/p>\n<h4>Pre-requisites For Extended Import<\/h4>\n<p>1) You must have already created the <strong>Product<\/strong> into which the users will be imported<\/p>\n<p>2) The user list has to be in a CSV (comma separated) format (one user per line), with the exact format being:<\/p>\n<blockquote><p><strong>Email,Firstname,Lastname,Password,ProductName, Address,City,State,Zip,Country,Phone,Company, Flag (to indicate Paid or Free user), Access Start Date, Access End Date,UserName<\/strong><\/p><\/blockquote>\n<p>Example:<\/p>\n<blockquote><p><strong>joe@somesite.com,Joe,Member,test123,Example One-time Product,99 hill ave,Cityname,NY,10001,USA,,Plug and Play Inc,y,2011-03-16, 2012-03-15,JoeMember<\/strong><\/p><\/blockquote>\n<p>The only required fields are <strong>Email<\/strong>, <strong>FirstName<\/strong> and <strong>ProductName<\/strong>. If you do not want to supply a value for any of the optional fields, but still wish to import certain others, then just leave those fields empty in the data row (but the <strong>commas should remain<\/strong>) as shown below.<\/p>\n<blockquote><p><strong><\/strong><strong>Email,Firstname,,,ProductName,,,,,,,,Flag (to indicate Paid or Free user), Access Start Date, Access End Date,UserName<\/strong><\/p><\/blockquote>\n<h4>How to do the actual Import<\/h4>\n<p>Create a file with the name\u00a0<strong>\/dap\/bulk\/importusers.csv<\/strong> file so it has the users you want to import in the format specified above.<\/p>\n<p>Run this script on your browser to complete the import, by visiting:<strong> <\/strong><\/p>\n<p style=\"padding-left: 30px;\"><strong>http:\/\/YourSite.com\/dap\/dap-bulkImport.php<\/strong><\/p>\n<p><strong>Note<\/strong>:<\/p>\n<p>* Replace &#8220;YourSite.com&#8221; with your actual domain name<\/p>\n<p>* Limit the number of users you are importing with this method to not more than 500 users (rows) at a time. Otherwise the import may timeout, because the import occurs real time, because you&#8217;re running the script manually, and not via cron. If the user already exists in dap, then the script will just skip that user and move on to the next user in the bulk add list.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DAP allows you to easily import users in bulk from an external system or database. Importing users in bulk is the same as adding users one at a time using the single-user-add feature. So whichever way you manually add users, DAP is going to all of the following&#8230; Create a new account for them using [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[60,59,58,6,26,51,7],"tags":[],"_links":{"self":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/455"}],"collection":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/comments?post=455"}],"version-history":[{"count":29,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/455\/revisions"}],"predecessor-version":[{"id":4316,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/455\/revisions\/4316"}],"wp:attachment":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/media?parent=455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/categories?post=455"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/tags?post=455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}