This page has been written to be up-to-date with Organic Groups 7.x-2.2
Organic groups 7.x-2.x is built to work with the Migrate module (https://drupal.org/project/migrate). No additional modules is needed.
Create a migration class for your group entity or content type as you normally would using MigrateDestinationNode or your own MigrateDestinationEntity/MigrateDestinationEntityAPI subclass. On this entity you will have two fields which are related to Organic Groups, normally named
group_group takes a value 0 or 1. 1 means that the node or entity is a group.
og_roles_permissions also takes a value 0 or 1. In this case, 1 means that the group may define its own roles and permissions.
In case you are happy with the default values for these fields applying to all your imported groups, you don't have to do anything. Your migration will just work. However, it is possible to change the default values:
// Organic Groups