Cloud service · Azure · Updated

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.

In short

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.

Cloud Services Hub →

8 key features of Microsoft Entra ID B2C

01
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.

02
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.

03
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.

04
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.

05
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.

06
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.

07
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.

08
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. 01
    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. 02
    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. 03
    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. 04
    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. 05
    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

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

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

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

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)

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

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

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

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

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

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.

Alternatives to Microsoft Entra ID B2C in other clouds

AWS

Amazon CognitoAmazon 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.

Compare fact by fact
Microsoft Entra ID B2CAmazon Cognito
Custom authenticationXML custom policies with REST callsAWS Lambda triggers
Free monthly active users50,000 under the MAU offer10,000 direct/social (Lite, Essentials)
Service tiersB2C P1Lite, Essentials (default), Plus
Compared Nov 2026

What is Microsoft Entra ID B2C

2 min read

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.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.