How do I hook before the user is created in Behat tests?
Somewhat predictably, which I'm pretty sure is deliberate, it's @beforeUserCreate.

The Drupal Extension Hooks section of the docs has a bit of background in case you need it.