User accounts import export

Is there a script to export all user accounts from the current db, and import them into a new installation?

Thank you.

Thanks @harry for this suggestion. We recorded it for future implementation.