Importing User Attributes + Multiple User Groups

Permalink Browser Info Environment
Can you specify one or more user attributes during the user import?
Also, is there a way to apply >1 user group to the user during import?

Type: Discussion
Status: In Progress
pkeller
View Replies:
tbcrowe replied on at Permalink Reply
tbcrowe
User import does not support custom attributes, but you can use the customer import to do so. The XML format is a bit different, but otherwise the effect is essentially the same. Note that when importing customers the billing and shipping attributes as shown in the example XML are optional.

Import is designed only to import users (or customers) into one group at a time. I did, however, just upload a new version of the package (2.4.10) to concrete5.org that allows for updates to existing customers. With this new version you can Import the same customer XML file repeatedly into different groups. Existing customers will be updated including adding the customer to the new group in addition to any previous groups the customer may have been in.
pkeller replied on at Permalink Reply
pkeller
OK thanks, I just tried the new version. I got an error when trying to import the same user to a different group. Was the change only made for the Customer Import?
Can I use the customer import in place of the user import all together? Does it use the billing or shipping email field for user login?
I have some customers to add that only need user logins, but others that I will need to add more complete details including user attributes, so will use Customer Import for the latter group (based on your earlier reply).
I noticed in Customer XML example you have a full name field assigned for both shipping and billing, whereas my customer attributes have separate fields for first name and last name in both places. I don't recall how those were created, but should I be using the first name last name as in my db, or is the full name accommodated though some behind the scenes programming?
Thanks!
tbcrowe replied on at Permalink Reply
tbcrowe
Yes, only customer import supports custom attributes. You can use the customer import in place of user import. There is very little difference between the two (other than the lack of custom attribute support for users).

Import will use the "customer_email" field for the user email (see the example XML)

The customer XML file included in the package is incorrect (thanks for pointing that out). Please refer instead to the online example XML, which is correct. You'll see that first name and last name are separate attributes there.
pkeller replied on at Permalink Reply
pkeller
I just tried downloading the examples from the examples link in the second paragraph athttp://www.concrete5.org/marketplace/addons/ecommerce-import/.... They appear to be the same as what I got earlier. Is there somewhere else to look?
tbcrowe replied on at Permalink Reply
tbcrowe
My apologies. I wasn't very clear. This is what I meant by the "online example XML":
http://screencast.com/t/uM8GmKcxu6nh...
pkeller replied on at Permalink Reply
pkeller
Cool, thanks. That seems to do the trick.
FYI: the screen shot you linked to isn't shown on the screenshot link on the product page, so you might want to add that one too.
Thanks for the prompt assistance!
pkeller replied on at Permalink Reply
pkeller
Is it possible to replace the Date Added to Group field within the import?
tbcrowe replied on at Permalink Reply
tbcrowe
No, unfortunately, I don't think it is (not properly). The interface concrete5 provides for adding/updating groups handles that date.

concrete5 Environment Information

# concrete5 Version
5.6.3.1

# concrete5 Packages
Ajax Form (1.3), Content+ (1.2), Designer Content (3.1.1), Designer Content Pro (0.5.2), Downloadable File Purchase (1.2.2), eCommerce (2.8.12), eCommerce - Special Instructions (0.9.8.3), eCommerce Import (2.4.9), Lightboxed Image (0.9.2), Page Auto Redirect (2.0), Page Redirect (1.4), Page Selector Attribute (1.1), PHP block by ND (1.0), Picmonkey Image Editor (0.95), QuizMaker Pro (1.4).

# concrete5 Overrides
blocks/cycle_slideshow, blocks/content, blocks/autonav, blocks/cta_button, blocks/heading_one, blocks/form, elements/block_area_footer.php, elements/files, elements/checkout, libraries/3rdparty, mail/receipt.php, models/page_theme.php, models/core_commerce, single_pages/page_not_found.php, single_pages/checkout, single_pages/profile, single_pages/training-and-certification-center, single_pages/dashboard, themes/custom, tools/order_print.php

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.4.13

# PHP Extensions
apc, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, ionCube Loader, json, ldap, libxml, mbstring, mcrypt, mhash, mysql, mysqli, odbc, openssl, pcntl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_sqlite, Phar, readline, Reflection, session, shmop, SimpleXML, snmp, sockets, SPL, sqlite3, standard, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib.

# PHP Settings
max_execution_time - 60
apc.max_file_size - 1M
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 128M
sql.safe_mode - Off
upload_max_filesize - 128M
ldap.max_links - Unlimited
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.