Re-create user with previous userId and email connection

I have the list of deleted users with their old IDs. I need to re-create them with identical ids. I thought I would use an import/export extension, but this will not work because there is only one connection, “Username-Password-Authentication”, but I need an email connection because all of them have been created using a passwordless connection.

Is there a way to achieve my goal? Thank you in advance for your help.


I’ve also tried bulk import, but I am getting an error “Connection must be a database connection.”. This is the problem