Import Users & batch add to group
-
I need to import a few hundred users and then batch add them to a group.
I know there is a batch add function in the admin – but the problem is that the user table doesn’t really filter and sort out of the box. I’ll import all these people into a sea of other users…. much easier if I could:
Create CSV, upload and set either (or both?)
_groups_buckets
_groups_product_groupsCan anyone confirm if
a. those are the user meta fields used by Groups? (I have the groups add-on for WooCommerce so it could be WooCommerce added them).
b. If those are how group access is stored for each user, then can anyone point me to something that explains what this structure is doing:
This is from the _groups_product_groups field for a user with a few groups:
a:3:{i:807;a:1:{i:803;a:1:{s:6:”groups”;a:1:{i:0;s:1:”2″;}}}i:805;a:1:{i:803;a:1:{s:6:”groups”;a:1:{i:0;s:1:”2″;}}}i:987;a:1:{i:818;a:1:{s:6:”groups”;a:1:{i:0;s:1:”3″;}}}}Or is this all stuff from Role Scoper?
And if so… then back to the original query — any way to upload a bunch of users and set or update their groups on import?
- The topic ‘Import Users & batch add to group’ is closed to new replies.