Create first employee for Customer

Creates an admin employee for B2B customers who don't have one.

bin/console b2b:create:first-employee-for-customer

Automatically generates first employee account for B2B customers.

Behavior:

  • Only processes customers with b2b_platform_access = true

  • Skips sales representatives

  • Only creates employee if customer has zero existing employees

  • Copies customer credentials, name, and email to employee

  • Grants admin privileges automatically

  • Sets department to "N/A"

Use Case:

  • After bulk migration to B2B

  • Restoring access for customers missing employees

  • Initial setup of B2B accounts

Last updated

Was this helpful?