Where Azure AD B2C stands
From Microsoft’s own pages, read on 25 November 2026:
- Effective May 1, 2025, Azure AD B2C is no longer available to purchase for new customers. Current customers can continue using it.
- Microsoft says it will continue supporting Azure AD B2C until at least May 2030, with SLAs, security updates and compliance unchanged.
- New B2C tenants can only be created with the P1 tier. The P2 tier was discontinued on March 15, 2026, for all customers.
- Microsoft’s next-generation product for customer and partner identities is Microsoft Entra External ID.
So nothing forces you to leave tomorrow. The choice is whether to move to Entra External ID, staying with Microsoft, or to a standards-based server you can run anywhere. The links are under Sources below.
How B2C maps to a realm
| Azure AD B2C | In Keycloak |
|---|---|
| B2C tenant | A realm |
| App registration | A client (OpenID Connect or SAML) |
| User flow: sign up and sign in | The browser flow, with user registration on |
| User flow: password reset, profile edit | Forgot password, and the account console |
| Local accounts | Users with passwords in the realm |
| Social and enterprise identity providers | Brokered identity providers |
Custom attributes (extension_…) | User profile attributes |
| Custom domain (instead of b2clogin.com) | Your own domain, such as auth.yourcompany.com |
| Multifactor authentication | One-time codes, passkeys, recovery codes |
Custom policies built on the Identity Experience Framework have no direct import. Their steps are rebuilt as authentication flows, conditions and required actions. Steps that call your own REST API during sign-in need a custom authenticator, which is an extension, and our tenant images do not support extensions yet. List those steps early; each needs another answer, often in your app after sign-in.
Users, passwords and IDs
Export users through Microsoft Graph: object ID, email addresses, names, sign-in names and your custom attributes. Import them into the realm, keeping the B2C object ID as an attribute such as legacy_b2c_id.
Passwords do not move: B2C does not export password hashes. The usual path is to mark each imported user with the Update Password required action, so they choose a password at their first sign-in after a reset email, or to let them sign in with a passkey or a social provider instead. A just-in-time migration that checks old passwords against B2C at first sign-in needs a custom extension, which we cannot run today.
Each user gets a new sub in Keycloak. If your database is keyed on B2C object IDs, map the kept attribute into tokens with a user attribute mapper, and switch your records over at your pace.
Moving the apps
- Create the realm, its clients and identity providers, and import the users into a staging copy.
- Register new redirect URIs at Google, Microsoft and the other providers you broker; they now point at your realm.
- Point each app at the new issuer,
https://auth.yourcompany.com/realms/customers. Apps that use MSAL usually move to a standard OpenID Connect library. - Test sign-up, sign-in, reset and every social provider on staging.
- Switch over, send password reset emails, and keep B2C running until the last app has moved.
We migrate from Azure AD B2C. Moving from Azure AD B2C describes what moves, what happens to passwords and how the move is tested.