Strapi create new User (users-permissions plugin), lifecycles

Ahh so as an FYI for anyone. The input validation will run before the ‘beforeCreate’ runs. So if you want to set defaults like ‘username’, you still need to pass something a username because it is required and then replace it in the before create.