Create a Microsoft Entra ID user via API
Build a workflow triggered by a request containing the new user's name, UPN/email, department, and manager. Create the user in Microsoft Entra ID via Microsoft Graph with a temporary password and required attributes. Check the UPN isn't taken, surface Graph errors clearly, and require approval for privileged assignments. Output the created user's object ID and status.
What this prompt builds
Create a new Entra ID account programmatically with the required attributes.
The problem
Ad-hoc Entra ID account creation in the portal is slow and inconsistent and doesn't scale to repeatable provisioning flows. Required attributes get missed.
Solution and impact
This workflow creates a new Entra ID user via Microsoft Graph with standardized attributes, ready to slot into larger onboarding automations. Account creation becomes consistent and API-driven.
