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

mikeryan’s picture

Project: Migrate » Migrate Extras
Component: migrate_example » Miscellaneous
Status: Active » Fixed

Organic 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.