Hello MidnightSender,
There are already many Open Source Active Directory User Management tools that you could modify based on your preferences. One of the most well known is Active Directory Accounts Manager in Github, that can be easily added into your IIS, and developed in PHP and JS
Hope this helps with your query,
--If the reply is helpful, please Upvote and Accept as answer--