I created a sub page to "users.php" where I can add a user in a customized way. I used a lot of the code from "user-new.php". However, user-new.php seems to rely on some javascript file to display the password when clicking the button, and to display errors, and maybe more.
How do I know what script files "user-new.php" uses, where they are enqueued, and how I can enqueue it for my custom page?
I suppose I need to use "admin_enqueue_scripts" somehow?