Microsoft Entra ID vs Clerk

Microsoft Entra ID and Clerk solve different identity problems: workforce sign-in versus login for your app's customers. This page explains when each fits, where a self-hosted option such as Keycloak, authentik or ZITADEL is the better route, and what each choice costs to run.

On this page

Microsoft Entra ID vs Clerk: when each one fits

If a renewal, a pricing change or a data residency question has put Microsoft Entra ID and Clerk side by side, start with who signs in: Microsoft Entra ID fits employee sign-in to Microsoft 365, Azure and the SaaS apps already in use, while Clerk fits a development team adding hosted login to a web app whose users are customers. The choice turns on three decision points: who the users are, whether data location must be fixed or chosen by your organization, and whether cost should grow with users or with a stable workforce. Answer these before you compare features, because each one can settle the question on its own.

Who the users are comes first. Entra ID Free is included with Microsoft cloud subscriptions such as Azure and Microsoft 365 and covers MFA, SSO to SaaS apps, basic reports and self-service password change, so an employee population already on those subscriptions adds no separate login product. Clerk prices by monthly retained users per app, with 50,000 included on every listed plan, so a customer-facing app is priced on its audience. Check which Microsoft 365 plan your workforce holds, because Entra ID P1 is included in Microsoft 365 E3 and Business Premium and P2 in E5, and confirm with Microsoft's Entra pricing page which Entra features your tenant actually needs.

Data location is the second check. An Entra ID tenant's location is mapped from the country or region chosen at tenant creation and cannot be changed afterward, so that choice is permanent. Clerk's security page states that it offers no regional data residency or region selection, that data is hosted on US infrastructure, and that EU, UK and Swiss personal data is transferred under the Data Privacy Framework. If your legal or regulatory team requires a fixed or chosen region for customer personal data, that requirement can settle the question before any pricing discussion. Cost is the third check: Clerk's Business plan lists $300 per month or $250 billed annually, plus $0.02 per retained user above 50,000 up to 100,000, so spend grows with customers, while Entra's per-user prices grow with the workforce.

Microsoft Entra ID vs Clerk by scenario: which fits your workload

This table maps five common workloads to the platform that fits each one better, with the condition that makes the difference. Read each row against your own user base, sign-in targets and data rules, because the answer changes once customer counts, connection counts or residency requirements change. The main takeaway is that the hosted services cover the first four scenarios only under specific conditions, while the last row points toward self-hosting.

ScenarioBetter fitWhen the advantage matters
Employee SSO to Microsoft 365Microsoft Entra IDFits when staff already sign in to Microsoft 365 through Entra ID, which comes with Microsoft 365 subscriptions at the Free tier.
Customer login in a shipped web appClerkFits when one web app needs hosted sign-up and sign-in and stays within 50,000 monthly retained users per app (Clerk pricing page).
Enterprise SSO per customerClerk, for a small number of connectionsMatters with a few customer SSO connections. Connections 2 to 15 cost $75 per month each (Clerk pricing page).
Fixed EU data locationMicrosoft Entra ID, tenant set to an EU countryMatters when a contract or regulator requires EU-hosted identity data. Clerk has no region selection and hosts in the US; confirm MFA data handling with Microsoft.
Full control of the identity storeSelf-hosted Keycloak (may fit better)Matters when you must own the database, password hashes and backups. Keycloak is Apache 2.0 licensed, but its realm export is limited as a backup.

How Microsoft Entra ID and Clerk bill, and what drives the bill

Microsoft Entra ID and Clerk both bill by user, retained user or connection, and each has tiers that change the total. Entra prices depend on the license tier each user already holds, while Clerk prices depend on plan, retained users and enterprise SSO connections. A self-hosted route replaces those meters with infrastructure, staff and support, so the comparison depends on your user count and tier mix.

Entra ID Free and bundled licenses

Entra ID Free comes with Microsoft cloud subscriptions such as Azure and Microsoft 365, according to Microsoft's Entra pricing page. It covers MFA, single sign-on to SaaS apps, basic reports and self-service password change. Microsoft also states that P1 is included in Microsoft 365 E3 and Business Premium, and P2 in Microsoft 365 E5. Check which Microsoft 365 plan your users hold before you price standalone licenses, because bundled tiers can remove a line item entirely.

Entra pricing page

Entra ID P1, P2 and Suite

Microsoft lists P1 from $7.00 and P2 from $10.00 per user per month, both with an annual commitment, according to the Entra pricing page. Entra Suite is listed from $12.00 per user per month and combines network access, identity protection, governance and identity verification, but it requires an existing P1 subscription. Users on different tiers appear on different lines of the invoice, so the total depends on your tier mix. Ask your Microsoft partner for per-user totals by tier, the commitment term and whether Entra Connect Health licenses are included.

Clerk plan fees

Clerk's pricing page lists a free Hobby plan, Pro at $25 per month or $20 billed annually, Business at $300 per month or $250 billed annually, and custom Enterprise pricing. Every listed plan includes 50,000 monthly retained users per app. Hobby excludes MFA and passkeys, which start on Pro, so a plan that looks free can change once you need second factors. Enterprise adds a 99.99% uptime SLA, log sinks, a HIPAA BAA and onboarding and migration support, so request those terms in writing if your compliance team needs them.

Clerk pricing page

Retained users and SSO connections

Above 50,000 monthly retained users per app, Clerk's pricing page charges $0.02 each up to 100,000, $0.018 up to 1,000,000, $0.015 up to 10,000,000 and $0.012 above that. Pro and Business include one enterprise SSO connection per app (SAML, OIDC or EASIE). Connections 2 to 15 cost $75 per month each, and connections 16 to 100 cost $60 each. Directory Sync billing starts January 1, 2027, and those connections use the same tiers, so add them to any multi-year forecast now.

Self-hosted route cost components

A self-hosted Keycloak or authentik route moves the bill from per-user licenses to costs you pay directly: compute for the identity servers, a database, load balancing, backup storage, staff time to operate and upgrade, and any support contract. Infrastructure and database costs usually recur, while design, migration and hardening work is mostly one-time. Keycloak documents its supported database setup, and authentik's free edition offers community support only, so a support contract is an optional line. Ask DeployOpen for a fixed-scope quote that prices each component separately and states its assumptions about user counts and upgrades.

Keycloak database guide

Microsoft Entra ID vs Clerk capabilities side by side

This table compares Microsoft Entra ID and Clerk on primary use, protocols, MFA, SSO connections, directory sync, uptime, compliance, data residency, export and pricing. Where a cell says to confirm, check the current figure or attestation with Microsoft before relying on it. Prices come from the Microsoft Entra and Clerk pricing pages. The main takeaway is that Clerk's costs grow with monthly retained users and SSO connections, Entra ID's depend on licensing tiers, and data location is fixed by the tenant for Entra and US-hosted for Clerk.

CapabilityMicrosoft Entra IDClerk
Primary useCloud workforce identity behind Microsoft 365 and Azure sign-inHosted authentication and user management for web apps
Supported protocolsSingle sign-on to SaaS and other apps; confirm the full protocol list with MicrosoftEnterprise SSO connections via SAML, OIDC or EASIE
MFA and passkeysMFA included in Entra ID Free; confirm passkey options for your tenant with MicrosoftNot on Hobby; MFA and passkeys start on the Pro plan
Enterprise SSO connectionsSSO to SaaS apps included in Entra ID Free; confirm connection limits with MicrosoftOne included per app on Pro and Business; extra connections $75 per month each for 2 to 15
Directory syncEntra Connect syncs Active Directory users, groups and password hashes; Cloud Sync is the direction Microsoft describesDirectory Sync connections use the same tiers as SSO, with billing from January 1, 2027
Uptime and compliance statementsConfirm uptime commitments and compliance attestations with Microsoft before stating themEnterprise plan 99.99% uptime SLA; SOC 2 Type 2 since May 6, 2022, report on Business and above
Data residencyTenant location set from country or region at creation and cannot change; MFA data may sit in North AmericaNo region selection; hosted on US infrastructure (Google Cloud, Cloudflare); EU, UK and Swiss data transferred under Data Privacy Framework
ExportDownload user list as CSV from the Entra admin center, including userPrincipalName, mail and departmentCSV export from dashboard under Settings, User exports; file includes hashed passwords
Pricing modelFree tier in Microsoft cloud subscriptions; P1 from $7.00 and P2 from $10.00 per user per month, annual commitmentHobby free; Pro $25 per month ($20 billed annually); Business $300 per month ($250 annually); Enterprise custom

Data location and exit in Microsoft Entra ID vs Clerk

This section compares where each identity platform stores user data and what it takes to leave. Entra ID fixes its tenant location at creation, while Clerk runs on US infrastructure with no region choice. Both products export user lists, but a user export is only one part of an exit, so confirm each point with the vendor before a renewal or residency review.

Entra tenant location is fixed

An Entra ID tenant's data location is set at creation from the country or region you choose, and Microsoft's data residency documentation states it cannot be changed afterward. Multifactor authentication data is stored in North America and/or the tenant's geo-location, so MFA data may sit in a different place from your directory. Before you commit, ask Microsoft which geo-location your tenant maps to, where MFA data is held for your sign-in regions, and what a wrong choice would require to correct.

Data residency docs

Clerk hosting without region choice

Clerk's security page states that it offers no regional data residency or region selection, and that data is hosted on US infrastructure built on Google Cloud and Cloudflare, with all subprocessors in the USA. For EU, UK and Swiss personal data, Clerk states that transfers are made under the Data Privacy Framework. Have your legal and privacy team confirm that this transfer basis meets your obligations, and request Clerk's current subprocessor list and transfer terms in writing.

Clerk security page

Export paths and their contents

In Clerk, admins export users from the dashboard under Settings, then User exports, and the downloaded CSV includes hashed passwords, so treat it as credential material with encryption and tight access controls. In Entra ID, admins download the user list from the admin center under Users, All users, Download users. That CSV includes attributes such as userPrincipalName, mail, department and on-premises identifiers, which you need to map if Active Directory still feeds the tenant. Ask Microsoft whether any password data is included in its exports.

Entra download guide

Leaving means rebuilding configuration

A user export is not a migration. A CSV moves user records, but it does not recreate app registrations, groups, policies, enterprise application settings or the redirect URIs each application registered with the identity provider. Each relying application must be reconfigured against the new issuer and retested, including login, logout and token claims. Build an inventory of applications, policies and redirect URIs before you start, and confirm with each vendor which objects can be exported as configuration and which must be recreated by hand.

The decision path from who signs in to where identity should live

The diagram starts with who signs in. Employees who need Microsoft 365 or Azure sign-in stay on Microsoft Entra ID, because those services depend on it. Employees who sign in to other applications, network devices or Linux hosts can move to self-hosted authentik or Keycloak. Customer sign-in splits on data location: a fixed location or full control of the identity store points to self-hosted ZITADEL or Keycloak, while a hosted service that accepts US-only data location points to Clerk. Check the Microsoft 365 dependency and your data residency rules before choosing a leaf.

Decision path from sign-in population to a candidate identity platform.

When a self-hosted option fits better than either product

Neither product is the right end state when the organization must choose where identity data lives, must stop paying more as users or retained users grow, or wants to own the identity store. In those cases the choice narrows to self-hosted platforms, and the fit depends on the use case. For multi-tenant customer identity, ZITADEL fits best: it structures tenants as an Identity System, Organizations and Projects, isolates data and policies at several levels, and runs on PostgreSQL 14 or later. For application SSO, Keycloak covers OpenID Connect, OAuth 2.0 and SAML 2.0 under the Apache License 2.0 and federates existing LDAP and Active Directory servers. For workforce SSO with LDAP, RADIUS and SCIM, authentik's core is MIT licensed, but its Microsoft Entra ID integration sits in the Enterprise edition under a separate license, so confirm that before you plan around it.

Self-hosting moves the operating work onto your team or your implementation partner. Plan for hosting in the cloud account or data center you choose, a production PostgreSQL database with its own backup and patch schedule, and a high availability design that runs more than one node behind a load balancer. Confirm the supported topology in each product's documentation. Backups need particular care. Keycloak's realm export with kc.sh export has documented limits as a backup and restore method, and all nodes must be stopped while it runs, so plan database-level backups and test restores on a schedule. Upgrades follow Keycloak's stated cadence of four minor releases a year, with breaking changes in minor releases made opt-in, but each release still needs a staging pass. authentik announces security releases at least 24 hours in advance and lists the version lines that receive fixes, so set a patch window that can absorb that notice.

ZITADEL is licensed under AGPL-3.0, with Apache 2.0 and MIT exceptions for specific directories. The AGPL terms can reach modifications you make and run as a network service, so legal review should happen before you commit. That review should name the directories you use, state whether you change any code, and record how your counsel views AGPL-3.0 for customer-facing identity. Decide early who owns on-call for the identity store, because a sign-in outage on a self-hosted platform is an outage your team runs. Before work starts, ask for a written scope that covers hosting, database, high availability, backup restore tests, the upgrade calendar and the security patch process.

What a move between Microsoft Entra ID and Clerk involves

A move between Entra ID and Clerk, in either direction, runs as inventory, export, mapping, rebuild, pilot, MFA re-enrollment and cutover, with each stage ending in a record the next one depends on, and the timeline is set in the written scope.

  1. Inventory applications, protocols and redirect URIs

    List every application that signs users in through Entra ID or Clerk, including app registrations, enterprise applications, SAML and OIDC settings, redirect URIs, logout URLs, certificates and the groups or roles each app reads. Application owners confirm their own entries, and the security team checks that Conditional Access policies, MFA requirements and any provisioning links are recorded as well. The step is done when every application has an owner, a protocol, its redirect URIs and a decision to rebuild, retire or keep on the source, and that list becomes the baseline for the rest of the move.

  2. Export users and confirm included credentials

    Download the user list from the Entra admin center under Users, All users, Download users, and export the Clerk instance from the dashboard under Settings, User exports. The Entra CSV carries attributes such as userPrincipalName, mail, department and on-premises identifiers, and the Clerk CSV includes hashed passwords. Before any file moves, ask each vendor in writing exactly which credentials, MFA factors and metadata the export contains, and confirm that the target accepts the hash format. The step is done when you hold an approved field map and an encrypted copy of each export, stored where access is logged.

  3. Map attributes, groups and claims on the target

    Match every exported attribute to a field on the target, then map Entra groups or Clerk organization roles to the groups, roles and token claims that each application expects. Name the claims apps read, such as email, groups and tenant identifiers, and flag any value with no equivalent so an application owner decides how to handle it. The step is done when an approved mapping table exists and a dry-run import on a copy of the data reports no unmapped required fields.

  4. Rebuild applications and enterprise connections on the target

    Recreate each application as a client or connection on the target, using the redirect URIs from the inventory, and configure SAML or OIDC enterprise connections for customers or partners where they exist. Clerk bills enterprise SSO connections beyond the one included per app on its paid plans, so count them before building. Test in a non-production realm or instance with test accounts. The step is done when every application completes sign-in and sign-out in staging and its logout URLs match the inventory.

  5. Import users and pilot with a test group

    Import the mapped users into the target and enable sign-in for a small pilot group that includes administrators, shared-mailbox owners and a few users from each department. Ask the pilot group to sign in to every migrated application, reset a password if an imported hash is rejected, and report any failed sign-in or missing group membership. The step is done when the pilot group has completed every test case in the inventory and each failure has an owner and a fix.

  6. Plan MFA and passkey re-enrollment

    MFA factors rarely move with the user list, so plan how each user registers authenticators on the target before cutover. Decide which methods the target supports, such as authenticator apps, security keys or passkeys, and which Entra or Clerk factors will be retired. Write a re-enrollment path for each user group and a help desk script that verifies identity before resetting a lost device. Confirm in writing whether the target can accept any existing factor data. The step is done when every user group has a documented path and the help desk has a tested recovery procedure.

  7. Cut over and decommission the source

    Switch application settings, DNS and identity provider configuration to the target during an agreed window, and keep the source read-only for the rollback period set in the written scope. Watch sign-in logs and help desk tickets closely after switchover, then disable source connectors, remove app registrations or Clerk instance access, and keep exported files only as long as your retention policy requires. The step is done when no application sends sign-ins to the source, the source logs show no active use, and the system owner signs the decommission record.

Questions buyers ask before comparing Microsoft Entra ID and Clerk

Which costs more, Microsoft Entra ID or Clerk?

The answer depends on whether you are paying for workforce sign-in or customer sign-in, because the two products price different things. Entra ID Free comes with Microsoft cloud subscriptions such as Microsoft 365 and Azure, while Entra ID P1 is listed from $7.00 per user per month and P2 from $10.00 per user per month with annual commitment, and Microsoft 365 E3 and Business Premium already include P1. Clerk's Pro plan is $25 per month or $20 billed annually, Business is $300 per month or $250 billed annually, and every listed plan includes 50,000 monthly retained users per app. Beyond that, Clerk charges $0.02 per retained user up to 100,000. The main cost drivers are the user count, the number of apps, enterprise SSO connections and the plan features you need. Ask each vendor for a written quote built on your own user counts.

Does the contract or data export lock us into Clerk or Entra ID?

The export itself is not the main lock-in; the sign-in setup around it is. Clerk admins can export an instance's users from the dashboard under Settings, then User exports, and the CSV includes users' hashed passwords, so treat the file as sensitive. Entra ID admins can download the user list as a CSV from the Entra admin center, including attributes such as userPrincipalName, mail, department and on-premises identifiers. A user CSV does not contain application configuration, redirect URIs, policies or enterprise app settings, which you rebuild on the target platform. Read the contract for termination, data return and notice terms, and ask each vendor to confirm in writing what an export contains.

How much migration effort should I expect moving off Clerk or Entra ID?

The effort depends on scope, and the export file is only a small part of it. Four factors set the work: the number of applications, the protocols each one uses (OIDC, OAuth 2.0, SAML, LDAP or SCIM), the user count and the data residency rules that apply to your identity data. Entra ID also holds Conditional Access, groups and any sync with on-premises Active Directory, and each of these has to be mapped to the target design. On the Clerk side, every app's login flow and session handling sits in application code. Ask any implementation partner for a written scope that lists applications, protocols, user counts, residency requirements and test and cutover steps, then request a quote built on that scope.

What does a migration need from our internal team?

A migration needs named owners in four areas, and each one has to approve its part of the cutover. Identity administrators own the directory, groups, MFA enrollment and any Active Directory sync. Application owners supply redirect URIs, claim mappings, test accounts and sign-off for each app. Security and compliance staff review data handling, residency decisions and the evidence trail for each change. The service desk prepares user messages and handles sign-in problems during the cutover window. Agree on who can stop a cutover before the work starts, and confirm that each owner has time booked for testing.

Can our own team migrate off Entra ID or Clerk without a partner?

Some teams can run the migration themselves if they already operate identity platforms and have application engineers free for each cutover. The parts that benefit most from outside review are cross-application testing, the evidence set for compliance reviews and the hardening of the new stack. DeployOpen plans, implements, integrates, hardens and documents self-hosted platforms inside your own cloud accounts, data centers or air-gapped networks, under fixed-scope work agreed in writing before it starts. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies issue the reports. Ask for a written scope that names each application and handover, so you can compare an in-house plan with a quote.

Where does my identity data live on Clerk and Entra ID?

Clerk does not offer regional data residency or region selection, so you cannot choose where its identity data is hosted. Clerk's security page says data is hosted on US infrastructure on Google Cloud and Cloudflare, with all subprocessors in the USA, and that EU, UK and Swiss personal data is transferred under the Data Privacy Framework. Entra ID sets a tenant's data location from the country or region chosen at tenant creation, and that choice cannot be changed afterward. Entra multifactor authentication data is stored in North America and/or the tenant's geo-location. Entra is also offered in US government and China clouds, and in China it is operated through a partnership with 21Vianet. Check these terms against your legal and regulatory review before you choose a platform.

Which Clerk features need a replacement in a self-hosted stack?

Clerk's paid features and Enterprise add-ons each need a named equivalent before you move, and the target has to cover them. On Clerk, MFA and passkeys start on the Pro plan and the Hobby plan excludes them, while Enterprise adds log sinks, a HIPAA BAA and onboarding and migration support. Plan where audit logs will land in your stack, because log sinks are a hosted feature you will need to rebuild. Keycloak supports OpenID Connect, OAuth 2.0 and SAML 2.0 with an admin console, and authentik's free edition supports OIDC, SAML, LDAP and SCIM. Confirm in writing how MFA, passkeys, enterprise SSO connections and audit logging are provided on your chosen target.

What does self-hosting Keycloak or authentik cost beyond software?

Keycloak and the authentik open-source core carry no license fee, so the cost sits in the work around them. Keycloak is Apache 2.0 licensed, and authentik's core is MIT licensed while its enterprise directory is under a separate license. The recurring costs are the servers or cloud accounts that run the service, the database (confirm the supported engines for your version), high availability, backups, patching, monitoring and on-call coverage. The one-time costs are design, integration and the move of each application. authentik Enterprise is listed at $5 per user per month billed annually plus $0.02 per external user per month, and Enterprise Plus starts at $20k annually, according to its pricing page. Community support is not a commitment, so price in paid support if you need one.

How DeployOpen helps evaluate, implement or integrate

DeployOpen approaches Microsoft Entra ID vs Clerk as a planning and implementation question before it is a product choice. We plan, implement, integrate, document and support self-hosted identity platforms such as Keycloak or authentik inside your own cloud accounts, data centers or air-gapped networks. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.

How we scope

  • Written scope names the Entra tenant, Clerk instance, and every application that signs users in.
  • We map which apps use SAML, OIDC or Clerk enterprise SSO connections and which need directory sync.
  • Data location, user export and password handling are settled in writing before any build starts.

How we build

  • Deploy Keycloak or authentik in your own infrastructure with SSO, access control and audit logging configured.
  • Rebuild Clerk sign-in flows, redirect URIs and session settings against the new identity provider, app by app.
  • Move exported users, including hashed password fields, only through an import path tested in staging first.

How we hand over

  • Documentation covers realm or tenant setup, SSO connection configuration, and each app's integration settings.
  • Backup and restore runbooks cover the identity database, since Keycloak export and import has documented limits.
  • Your team receives admin roles, audit log locations and a checklist for retiring the current platform.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • If Keycloak is chosen, upgrades follow its cadence, where minor-release breaking changes are opt-in.
  • Security testing of the deployed setup can be scoped in writing, with retesting after fixes.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.