Facing a similar problem with my admin users creating user accounts for sub-users, maybe long before the sub-user is invited into the app.
Couldn’t you direct your users to a login page which is really a password reset page. The user enters their email address (you might be able to pre-insert this using url parameters). They are emailed a custom password reset email containing a link that sets them up with a password using the reset token.