Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Statistics Counter Module statistics_counter crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

This module allows editors to assign an entity to a group directly from the entity's edit form using an entity reference field. It automatically creates the group relationship upon saving and can lock the field afterward to prevent accidental changes. This simplifies the process of placing content within groups without needing to navigate to the group's interface.

Group Assignment Widget lets editors assign an entity to a Group directly from a field on the entity's own edit form. It automatically creates the Group relationship on save and locks the field afterward, so no separate "Add content to group" step is needed.

If you use the Group module and want a simpler, field-based way to place nodes (or any content entity) into a group, this module handles the relationship for you and keeps the assignment stable once set.

Features

The module adds two entity reference field widgets:

  • Group Assignment (with auto-relationship): an autocomplete widget for choosing a group.
  • Group Assignment Select (with auto-relationship): a select-list widget for the same purpose.

Both widgets do the same underlying work: when the entity is saved, a Group relationship is created between that entity and the selected group. Changing the value on a later edit removes the old relationship and creates the new one. The field is locked after the first save, so the assignment can't be changed accidentally; only users with the dedicated permission can edit it later.

Typical use cases: assigning articles to a department, placing pages under a team or organization, or letting content authors pick a group without training them on the Group module's separate content-adding workflow.

Post-Installation

There is no central configuration page. After enabling the module:

  1. Add an Entity reference field (referencing Group) to the bundle you want to assign, if you don't already have one.
  2. Go to Manage form display for that bundle and set the field's widget to Group Assignment (with auto-relationship) or Group Assignment Select (with auto-relationship).
  3. At People > Permissions, grant Edit group assignment field after creation to any role that should be allowed to change the assignment after the entity is first saved.

Note: the relationship is only created if the selected group's group type has an installed relation plugin that supports the entity type and bundle being saved. Make sure the relevant content plugin is enabled on the group type.

Additional Requirements

  • Group module
  • Options module (Drupal core)
  • Drupal core 10.3+ or 11

Similar projects

The Entity Group Field module performs a similar function, but creates its own field rather than using one you have created. It has been around longer than this one and has great maintainers and strong usage, so definitely look to that module first. If you have created a Group reference field already and just want a lightweight module, this is a good choice for you.

The Group module itself provides the standard way to add content to a group through the group's own interface. This module differs by moving that action onto the content entity's edit form.

Activity

Tracked releases
1
Tracked since
Aug 2026
Latest release
1 week ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.x-dev Dev Aug 15, 2026