In enterprise environments using Azure Active Directory, access issues experienced by users during multi-factor authentication (2FA/MFA) processes created a significant bottleneck for operations teams. Especially in cases such as device changes, loss of MFA applications, or misconfigurations, users would lose access to the system, requiring manual intervention. To address this problem, the Azure AD 2FA Reset tool was developed as a CLI application capable of centrally and automatically resetting users' MFA/2FA configurations. Technically, the project: Is developed to run on Node.js (>=18) runtime Integrates directly with Azure AD using the Microsoft Graph API Uses OAuth2 / Azure App Registration for authentication and authorization Has a stateless and scriptable architecture (can be integrated into CI/CD or automation pipelines) Thanks to its CLI-based architecture: User MFA reset operations can be performed with a single command Operational processes are standardized Human error is minimized The project is also published as a package in the npm ecosystem.
In this process: The codebase was modularized (CLI and core logic separation) Versioning and dependency management are handled via package.json Release processes are managed using semantic versioning Published via npm to become a globally accessible CLI tool Difference between the npm package and the
GitHub version: The npm version is installable and runs as a global CLI tool (via npx / global install) The GitHub version is intended for development and contribution purposes The npm version is the built, stabilized, and released distribution
With this project: MFA reset requests to support teams have been significantly reduced Intervention times have been reduced to seconds Internal IAM operations have been automated
