Enhances Entity Reference fields with email invitation workflows. Allows content editors to select existing users OR invite new users via email - invited users are automatically added to the reference field after registration or login.

Perfect for: Team management, project collaboration, group memberships, event management, and any scenario where you need to invite users to specific content entities.

Key Features

  • Dual Selection Mode: Select existing users OR invite via email in the same widget
  • Automatic Attachment: Invited users auto-added to field after registration/login
  • Secure Tokens: SHA-256 hashed tokens with configurable expiration (30-90 days)
  • Customizable Email Templates: Full control via Drupal's user account settings with rich token support
  • Admin Interface: Manage all invitations at /admin/people/invitations
  • Context-Specific Roles: Automatically assign roles based on invitation context
  • Entity Agnostic: Works with any entity type and user reference field

Quick Start

  1. Install and enable the module: drush en user_reference_invite
  2. Configure permissions at /admin/people/permissions
  3. Set up email templates at /admin/config/people/accounts
  4. On any User Reference field, select "User Reference with Invite" as the widget
  5. Start inviting users!

Requirements

  • Drupal 11.x
  • Core Field and User modules
  • Recommended: Token module (for token browser in email templates)
  • Optional: HTML Mail, Swiftmailer, or Symfony Mailer (for enhanced emails)

Resources

Compatible with Drupal 11 | GPL-2.0-or-later License

Short name
user_reference_invite