# Microsoft Entra ID B2C

Microsoft Entra ID B2C refers to Azure Active Directory B2C, Microsoft’s legacy customer identity and access management service for web applications, mobile applications, and APIs.

Cloud service · Azure. Updated 2026-11-25. Page: https://blowstack.com/tools/cloud-services-hub/azure-active-directory-b2c

> Azure AD B2C provides a separate customer directory, hosted authentication journeys, identity-provider federation, and token issuance for customer-facing applications. Existing customers can continue using the service, but it has not been available to purchase for new customers since May 1, 2025; Microsoft Entra External ID is the successor product, not a rename of Azure AD B2C.

## 8 key features of Microsoft Entra ID B2C

1. **Dedicated customer directory**: Maintain customer identities separately from employee accounts in a dedicated B2C tenant. Use supported Microsoft Graph operations for account provisioning and profile maintenance, and keep application-specific data in an application database.
2. **Built-in authentication user flows**: Configure hosted sign-up, sign-in, password reset, and profile-editing journeys without writing the authentication screens from scratch. Select the identity providers, attributes, claims, and authentication settings needed for each application.
3. **Identity Experience Framework custom policies**: Implement specialized journeys using XML policies, claims transformations, and REST API technical profiles. For example, validate a customer reference against an existing system before completing registration.
4. **Social and enterprise federation**: Allow customers to authenticate using configured social providers or federated enterprise identity providers. Restrict accepted enterprise tenants explicitly when access must be limited to approved organizations.
5. **Standards-based application authentication**: Integrate applications through OpenID Connect and OAuth 2.0, including delegated access to registered APIs. Configure each API to accept only the intended token issuer, audience, policies, and scopes.
6. **Customizable hosted experience**: Apply branding, localized text, and supported custom page content to customer journeys. A custom authentication domain can provide a consistent sign-in hostname, but requires additional domain and routing configuration.
7. **Multifactor authentication**: Require additional verification using supported methods such as phone verification or authenticator-app TOTP. Available options depend on the journey configuration; do not assume parity with workforce Microsoft Entra authentication or retired B2C Identity Protection features.
8. **Authentication and administration diagnostics**: Use sign-in and audit logs to investigate authentication failures and configuration changes. Export logs for retention beyond seven days, and use Application Insights for controlled custom-policy troubleshooting without unnecessarily recording personal data.

## Where Microsoft Entra ID B2C is used

1. **Existing retail customer portals**: Provide registration, sign-in, password recovery, and profile updates for an existing B2C-backed storefront. Store orders and customer entitlements in the application database rather than treating directory attributes as the complete customer record.
2. **Mobile applications with protected APIs**: Authenticate customers through a supported mobile authentication library and request access tokens for backend APIs. Validate token scopes and customer ownership before returning account-specific records.
3. **Mixed consumer and business-customer access**: Offer local or social sign-in alongside federation to approved customer organizations. Apply application-level authorization so successful authentication does not automatically grant access to another organization’s data.
4. **Registration connected to existing customer systems**: Use an API connector or custom policy REST call to validate registration details against a CRM or membership service. Design the dependency for low latency and define clear failure behavior when validation is unavailable.
5. **Patient-facing healthcare applications**: Use the supported Azure Health Data Services FHIR integration to authenticate patients without placing their accounts in the workforce directory. Configure SMART on FHIR scopes and the required access controls rather than relying on sign-in alone.

## How Microsoft Entra ID B2C is priced

- **Monthly active users**: Core B2C billing is based on unique users with authentication activity during a calendar month, rather than total stored accounts or every sign-in. The MAU offer includes a free allowance for the first 50,000 monthly active users; verify the applicable P1 rates and agreement terms, and link the B2C tenant to an Azure subscription for billing. B2C P1 is distinct from workforce Microsoft Entra ID P1, and B2C P2 is retired.
- **Phone authentication transactions**: Phone-based authentication incurs separate transaction charges, with rates depending on destination country or region. These charges can appear under Microsoft Entra External ID phone-authentication meters even though the directory continues to use B2C MAU billing; include abuse prevention and transaction monitoring in cost controls.

## Services Microsoft Entra ID B2C works with

A common architecture keeps customer identities and application registrations in the B2C tenant while hosting application infrastructure in subscriptions associated with a workforce tenant. A web or mobile client authenticates through a B2C user flow or custom policy and requests an access token for its API. Azure API Management can validate the token at the gateway before forwarding the request to an App Service or Functions backend. The backend still enforces resource ownership and business permissions.

Registration journeys can call a protected Azure Functions endpoint to validate customer records or enrich claims. Keep these synchronous calls short, avoid unnecessary personal data in request payloads, and define failure behavior because endpoint outages can block sign-up. Federation to Microsoft Entra ID lets approved business customers use corporate credentials while B2C remains the token issuer trusted by the application.

Export sign-in and audit logs through Azure Monitor for operational analysis and retention beyond the native seven-day window. Healthcare applications can use the supported Health Data Services FHIR integration, with SMART on FHIR scopes and explicit authorization configuration. Treat identity policies, API validation settings, upstream-provider credentials, and diagnostic configuration as coordinated deployment artifacts.

- **[App Service](https://blowstack.com/tools/cloud-services-hub/app-service)**: Host a customer-facing web application on App Service and configure its authentication middleware to use B2C OpenID Connect metadata. For example, an account portal can redirect users to a sign-up/sign-in policy and maintain a secure application session after the callback. Register the application’s exact HTTPS redirect URI in the B2C tenant and keep confidential-client credentials out of source control.
- **[API Management](https://blowstack.com/tools/cloud-services-hub/api-management)**: Use API Management JWT validation policies to check B2C access tokens before forwarding requests to backend services. For example, require the intended API audience and a read scope on an order-history endpoint. Use the correct policy-specific OpenID Connect configuration, and keep resource ownership checks in the backend.
- **[Azure Functions](https://blowstack.com/tools/cloud-services-hub/azure-functions)**: Expose an HTTPS function as an API connector endpoint or a REST endpoint called by a custom policy. For example, check whether a membership number is valid before allowing registration to complete. Authenticate B2C calls using a supported mechanism, return the expected response contract, and minimize execution time because this endpoint is on the interactive authentication path.
- **[Azure Monitor](https://blowstack.com/tools/cloud-services-hub/azure-monitor)**: Route B2C sign-in and audit logs through diagnostic settings to supported monitoring destinations. For example, send logs to a Log Analytics workspace and alert on increases in failed sign-ins. Follow the B2C-specific cross-tenant setup where required, since the workspace and subscription are typically associated with the workforce tenant.
- **[Microsoft Entra ID (formerly Azure AD)](https://blowstack.com/tools/cloud-services-hub/microsoft-entra-id-(formerly-azure-ad))**: Configure Microsoft Entra ID as an external identity provider for B2C applications. For example, a customer portal can offer corporate sign-in for approved business customers alongside consumer accounts. Restrict allowed upstream tenant issuers and map the claims needed by the application; this federation does not turn B2C into a Microsoft 365 identity provider.
- **[Azure Health Data Services](https://blowstack.com/tools/cloud-services-hub/azure-health-data-services)**: Integrate B2C with the FHIR service in Azure Health Data Services for patient-facing access using SMART on FHIR scopes. For example, a patient application can authenticate through B2C and request access to permitted FHIR records without creating customer accounts in the workforce tenant. Configure the documented FHIR integration and authorization controls explicitly; a generic B2C token is not sufficient by itself.
- **[Azure AI Bot Service](https://blowstack.com/tools/cloud-services-hub/azure-ai-bot-service)**: Microsoft Entra ID B2C can authenticate users in a bot conversation through an Azure AI Bot Service generic OAuth 2.0 connection. The bot can prompt a customer to sign in and obtain a B2C access token through the connection.
- **[Azure Blob Storage](https://blowstack.com/tools/cloud-services-hub/azure-blob-storage)**: Microsoft Entra ID B2C can archive audit and sign-in logs to Azure Blob Storage through diagnostic settings. Blob Storage can also host the HTML templates that B2C loads for branded sign-up and sign-in pages.
- **[Azure Container Apps](https://blowstack.com/tools/cloud-services-hub/azure-container-apps)**: Microsoft Entra ID B2C can act as a custom OpenID Connect provider for built-in Azure Container Apps authentication. Container Apps can redirect unauthenticated users to a B2C sign-in policy and validate their tokens without the container implementing the sign-in flow.
- **[Azure Content Delivery Network](https://blowstack.com/tools/cloud-services-hub/azure-content-delivery-network)**: Microsoft Entra ID B2C can load custom sign-in and sign-up page templates from an Azure Content Delivery Network endpoint. The endpoint can cache the HTML and branding assets, with cross-origin access configured so B2C can fetch the templates.
- **[Azure DevOps](https://blowstack.com/tools/cloud-services-hub/azure-devops)**: Microsoft Entra ID B2C custom policy XML can be deployed from Azure Pipelines. A pipeline can publish a tested set of policies to a B2C tenant through Microsoft Graph rather than requiring manual uploads.
- **[Azure DNS](https://blowstack.com/tools/cloud-services-hub/azure-dns)**: Microsoft Entra ID B2C can use a custom sign-in domain whose DNS records are hosted in Azure DNS. The zone can hold the domain verification record and the CNAME that directs a hostname such as login.contoso.com to the Azure Front Door endpoint for B2C.
- **[Azure Front Door](https://blowstack.com/tools/cloud-services-hub/azure-front-door)**: Microsoft Entra ID B2C uses Azure Front Door to serve authentication endpoints on a custom domain. Front Door accepts requests at a hostname such as login.contoso.com and forwards them to the tenant's B2C login endpoint.
- **[Azure Lighthouse](https://blowstack.com/tools/cloud-services-hub/azure-lighthouse)**: Microsoft Entra ID B2C can use Azure Lighthouse delegation to access a resource group in a separate workforce tenant. This lets authorized B2C administrators configure diagnostic settings that send logs to a Log Analytics workspace in that resource group.
- **[Azure PlayFab](https://blowstack.com/tools/cloud-services-hub/azure-playfab)**: Microsoft Entra ID B2C can serve as an OpenID Connect identity provider for PlayFab. A game can use a B2C sign-in to authenticate a player and create or link the player's PlayFab account.
- **[Azure portal](https://blowstack.com/tools/cloud-services-hub/azure-portal)**: Microsoft Entra ID B2C provides tenant management pages in the Azure portal. Administrators use them to register applications, configure identity providers and user flows, upload custom policies, and manage customer accounts.
- **[Azure Red Hat OpenShift](https://blowstack.com/tools/cloud-services-hub/azure-red-hat-openshift)**: Microsoft Entra ID B2C can act as an OpenID Connect identity provider for Azure Red Hat OpenShift. The cluster can use claims from a B2C sign-in policy to identify users signing in to the OpenShift console.
- **[Azure Resource Manager](https://blowstack.com/tools/cloud-services-hub/azure-resource-manager)**: Microsoft Entra ID B2C directories are represented in Azure Resource Manager as Microsoft.AzureActiveDirectory/b2cDirectories resources. Resource Manager can provision the directory resource and link it to the Azure subscription used for billing.
- **[Azure role-based access control (Azure RBAC)](https://blowstack.com/tools/cloud-services-hub/azure-role-based-access-control-(azure-rbac))**: Microsoft Entra ID B2C has a directory resource in its linked Azure subscription whose management permissions are governed by Azure RBAC. Those permissions are separate from the directory roles used to administer customer accounts and policies inside the B2C tenant.
- **[Azure Spring Apps](https://blowstack.com/tools/cloud-services-hub/azure-spring-apps)**: Microsoft Entra ID B2C can serve as an OpenID Connect provider for Application Single Sign-On in Azure Spring Apps Enterprise. Applications using that service can direct customers to a B2C sign-in policy.
- **[Azure Web Application Firewall](https://blowstack.com/tools/cloud-services-hub/azure-web-application-firewall)**: Microsoft Entra ID B2C custom-domain traffic can be inspected by an Azure Web Application Firewall policy on Azure Front Door. For example, the policy can rate-limit requests to a branded sign-in endpoint before they reach B2C.
- **[Event Hubs](https://blowstack.com/tools/cloud-services-hub/event-hubs)**: Microsoft Entra ID B2C can stream audit and sign-in logs to Event Hubs through diagnostic settings. A downstream monitoring system can consume the event stream without polling the tenant.
- **[Logic Apps](https://blowstack.com/tools/cloud-services-hub/logic-apps)**: Microsoft Entra ID B2C can invoke a Logic Apps HTTP-triggered workflow from an API connector or a custom policy. For example, a sign-up flow can send attributes to the workflow and use its response to decide whether registration should continue.
- **[Microsoft Entra External ID](https://blowstack.com/tools/cloud-services-hub/microsoft-entra-external-id)**: Microsoft Entra ID B2C can serve as the source directory in a staged migration to Microsoft Entra External ID. A just-in-time password migration can validate a local account's existing password against B2C at the user's first External ID sign-in, avoiding an upfront password reset.
- **[Microsoft Entra Verified ID](https://blowstack.com/tools/cloud-services-hub/microsoft-entra-verified-id)**: Microsoft Entra ID B2C can use a custom policy to require proof from Microsoft Entra Verified ID during a user journey. For example, the policy can wait for confirmation that the user presented an accepted verifiable credential before completing registration.
- **[Microsoft Sentinel](https://blowstack.com/tools/cloud-services-hub/microsoft-sentinel)**: Microsoft Entra ID B2C can supply audit and sign-in logs to the Log Analytics workspace used by Microsoft Sentinel. Sentinel can query those logs and run analytics rules to flag patterns such as a spike in failed customer sign-ins.
- **[Static Web Apps](https://blowstack.com/tools/cloud-services-hub/static-web-apps)**: Microsoft Entra ID B2C can be configured as a custom OpenID Connect provider in Azure Static Web Apps. Static Web Apps can then send users to the B2C sign-in flow and restrict protected routes to authenticated users.

## Alternatives to Microsoft Entra ID B2C in other clouds

### AWS

**[Amazon Cognito](https://blowstack.com/tools/cloud-services-hub/amazon-cognito)**: Amazon Cognito and Microsoft Entra ID B2C manage customer accounts and support direct and federated sign-in for web and mobile apps. Cognito customizes authentication with AWS Lambda triggers, while Entra ID B2C uses XML policies, and the services offer different free allowances for monthly active users.

| | Microsoft Entra ID B2C | Amazon Cognito |
| --- | --- | --- |
| Custom authentication | XML custom policies with REST calls | AWS Lambda triggers |
| Free monthly active users | 50,000 under the MAU offer | 10,000 direct/social (Lite, Essentials) |
| Service tiers | B2C P1 | Lite, Essentials (default), Plus |

Compared Nov 2026.

## What is Microsoft Entra ID B2C

Azure Active Directory B2C, commonly called Azure AD B2C, handles customer registration, authentication, password recovery, and profile management for applications. Applications delegate authentication to the service instead of collecting and validating customer passwords themselves. Customers can use local accounts or supported external identity providers, while applications receive tokens containing the configured identity claims.

The service uses a dedicated Azure AD B2C tenant that is separate from an organization’s workforce Microsoft Entra ID tenant. Register customer applications and APIs in the B2C tenant, but deploy application infrastructure such as Azure App Service, Azure Functions, and databases in subscriptions associated with a workforce tenant. Customer accounts do not receive Azure resource access merely because they exist in the B2C directory. B2C is also not a replacement for Microsoft Entra ID authentication to Microsoft 365.

Built-in user flows cover common journeys such as combined sign-up and sign-in, password reset, and profile editing. Configure identity providers, collected attributes, emitted claims, branding, and supported multifactor authentication settings for each journey. When built-in flows cannot express the required behavior, Identity Experience Framework custom policies provide XML-based orchestration, claims transformations, and REST API calls. These policies require careful testing and version control because an invalid policy or unavailable external dependency can interrupt authentication.

For web, mobile, and single-page applications, use a supported authentication library and OpenID Connect or OAuth 2.0. Prefer authorization code flow with PKCE for public clients, register exact redirect URIs, and use the policy-specific discovery metadata. Customer authentication normally uses the tenant’s b2clogin.com endpoint or a configured custom domain. APIs must validate access-token signatures, issuer, audience, expiration, and required scopes; an ID token is not an API authorization credential. Keep business permissions and resource ownership checks in the application or a dedicated authorization layer.

Operationally, separate development and production configurations, protect policy keys and application credentials, and monitor authentication failures and external API latency. Native sign-in and audit log retention is seven days, so export logs through Azure Monitor when longer retention is required. Microsoft Graph supports supported directory-management operations, but B2C does not provide every workforce Entra capability. Azure AD External Identities P2 is retired in B2C tenants, and Identity Protection capabilities are no longer available in B2C P1 tenants.

Azure AD B2C is no longer sold to new customers, while existing customers can continue operating it with support committed until at least May 2030. For new customer-identity deployments, evaluate Microsoft Entra External ID. For existing deployments, inventory user flows, custom policies, identity providers, application registrations, and REST dependencies before planning migration; B2C custom policies should not be assumed to transfer unchanged.
