Closed (fixed)
Project:
Migrate Extras
Version:
6.x-2.1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Aug 2011 at 18:27 UTC
Updated:
24 Sep 2011 at 16:21 UTC
I need to import users from one site to another, while maintaining the same roles & permissions (I have no need to migrate nodes - just users and roles). There will also be some changes in the user profile - on the old site, one field was Organization; on the new site, Organizations are organic groups.
For importing users, I *think* I have a general idea from lines 157-223 the beer.inc example. Is any of the other code there relevant, aside from lines 21-40?
For importing a profile field into an OG, is it as simple as mapping the profile field table/row to the OG table/row?
Comments
Comment #1
mikeryanOrganic Groups integration is implemented in Migrate Extras. Membership is actually done as a distinct migration, using destination class MigrateDestinationOGMembership - the essential fields to map are gid (the OG group ID) and uid.