Drupal is a registered trademark of Dries Buytaert
cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)!

The Group Relationship Export module improves the drush site:export command for Drupal sites using the Group module.

It ensures that group relationships are exported cleanly by excluding sensitive membership data and correctly handling entity dependencies.

Features

  • Fixed group relationship dependency tracking: Fixes issues where referenced entities in group relationships were not correctly identified as dependencies during export.
  • UUID-based references: Ensures that exported group relationships use UUIDs instead of local IDs, making the exported content portable across different environments.
  • (Optional) Exclude memberships: Automatically prevents group_membership entities from being exported. This is for avoiding the inclusion of user data in reusable site recipes or default content. Assumption: You don't want to export the users and their relationships, only the group content and be able to start your site just with UID 1.

Post-Installation

Once installed, the module works automatically by subscribing to the pre-export events of the site:export command.

Optionally, you can de-activate the "Exclude memberships" feature on the module's config page (/admin/config/development/group-relationship-export).

Then simply run your standard Drush export command:

drush site:export

The module will intercept the process to apply the improvements to group-related data.

Additional Requirements

  • Group module (supports versions compatible with Group 3.x and 4.x).
  • Drupal Core 10.3 or higher.

There are no additional recommended modules at this time, but it is recommended to use this in conjunction with the Default Content or Recipes workflow where site:export is utilized, because otherwise you likely won't need it.

Activity

Total releases
1
First release
Jun 2026
Latest release
17 hours ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.0.0 Stable Jun 15, 2026