This script is a demonstration of how to use the Azure AD B2C User API to create, update and delete customer accounts (aka. users with local account identities).
You need an Azure subscription, with an Azure AD B2C tenant and an application registered in that tenant.
You also need to create a client secret for that application.
See the Resources section for more information.
Install all dependencies:
npm ci
Create a .env
file in the root of the project (copy the .env.example
file) and fill in the required values.
Run the test script which will create, update and delete a user:
npm run test
- Azure AD B2C User Creation API
- Azure AD B2C tenant
- Azure AD B2C Application with the following permission:
User.ReadWrite.All
- Node.js