Auto-creating Drupal user entities with custom entity reference selection plugin
Creating users on the fly through Drupal's entity reference fields doesn't work out of the box because user entities need more than just a label. The core implementation tries but fails to properly generate usernames, emails, and passwords from the provided text. This tutorial shows how to fix this with a custom Entity Reference Selection plugin.