Microsoft Entra ID vs Amazon Cognito: when each one fits
Microsoft Entra ID fits workforce sign-in when your staff already sign in to Microsoft 365 and Azure. Amazon Cognito fits app login for an AWS-hosted workload, priced per monthly active user. Most teams facing this choice run apps on both estates, so the decision turns on four questions. First, whose identities sign in: employees, contractors or external customers, since each group changes the directory, licensing and login experience. Second, where the applications run, because an app hosted on AWS and an app that depends on Microsoft 365 will usually need different federation paths. Third, user volume, which drives Cognito cost directly. Fourth, whether identity data must sit in a location your organization chooses, a constraint to settle before any tenant or user pool exists.
Entra ID Free comes with Microsoft cloud subscriptions such as Azure and Microsoft 365, so a Microsoft-centered estate may already own the sign-in layer and only needs to check which premium features it relies on. Data location is fixed early. According to Microsoft's data residency guidance, a tenant's data location follows the country or region chosen at creation and cannot be changed afterward, and Entra multifactor authentication data may be stored in North America and/or the tenant's geo-location. Cognito cost works on a different unit. Lite and Essentials user pools include 10,000 free monthly active users, Essentials lists $0.015 per monthly active user after that, and users who sign in through SAML or OIDC federation get 50 free per account each month, according to AWS's pricing page. User volume and the share of federated users therefore decide the bill, while Entra cost depends mostly on per-user licensing.
Before committing, run three checks. Export the current user list from the Entra admin center (Users, All users, Download users) to see which attributes your directory actually uses, since those fields will have to map into any target platform. In Cognito, review the attribute schema first: custom attributes cannot be removed once added, and a username cannot be changed after the user is created, so a naming mistake becomes permanent. Then confirm with your AWS account team and Microsoft licensing contacts which region, tenant location and feature plan apply to your contracts, because Lite, Essentials and Plus differ in features and price. If both estates need sign-in, plan for two identity stores and two sets of policies unless a shared broker sits in front of them. A self-hosted platform such as Keycloak can serve as that single broker when data location is the deciding factor, and that option is worth costing before any migration begins.
Which path fits your sign-in workload
The path starts with who signs in. Staff who sign in with Microsoft 365 accounts go to Microsoft Entra ID, since that sign-in is tied to the Microsoft 365 licensing and admin model. App users move on to where the apps run: mostly AWS, or Azure and on-premises. The key check is whether identity data must stay in a location you control. If a managed cloud service is acceptable, Amazon Cognito is the AWS-native option, but confirm its user pool limits first, because some attributes and sign-in settings cannot be changed after the pool is created. If the data must stay under your control, route to a self-hosted Keycloak or ZITADEL deployment and confirm protocol and tenancy needs.
Routes staff and app user sign-in to Entra ID, Cognito, Keycloak or ZITADEL.
Which scenarios favor Entra ID and which favor Cognito
This table maps five common scenarios to the better fit between Microsoft Entra ID and Amazon Cognito. Read each row's condition first, because if it does not hold in your environment, the stated fit may not apply. The main takeaway is that Entra ID usually suits teams already on Microsoft 365 and Active Directory, while Cognito suits AWS-hosted customer login, and neither meets a strict in-house data center requirement.
| Scenario | Better fit | Why the fit holds and its condition |
|---|---|---|
| Staff sign-in to Microsoft 365 with Active Directory synced through Entra Connect | Microsoft Entra ID | Holds when Microsoft 365 is your productivity suite and Entra Connect already syncs AD users and groups. |
| Customer login in an AWS-hosted app where user volume suits per-MAU pricing | Amazon Cognito | Holds when the app already runs on AWS and monthly active user counts fit the per-MAU model. Model costs on the pricing page. |
| SaaS product that federates with each customer's SAML or OIDC provider | Cognito, with few providers | Holds on AWS with few providers. Many per-customer connections or non-AWS hosting point toward a broker such as Keycloak. |
| Team already holds Entra P1 or P2 through a Microsoft 365 plan | Microsoft Entra ID | Holds when the license is already paid for, since P1 comes with Microsoft 365 E3 and Business Premium and P2 with E5. |
| Regulated team that must keep identity data in its own data center | Neither; self-hosted Keycloak fits better | Both run as cloud services, and Entra's tenant location is fixed at creation. Confirm residency terms in writing. |
What Entra ID and Cognito charge for, and what drives the bill
Entra ID bills per user across license tiers, while Cognito bills per monthly active user (MAU) with free allowances that depend on the tier, the pool's creation date and the sign-in method. The cards below set out each published rate and allowance, then the costs that sit outside the license.
Entra ID Free with cloud subscriptions
Microsoft Entra ID Free is included with Microsoft cloud subscriptions such as Azure and Microsoft 365, so many tenants already hold it. It provides MFA, single sign-on to SaaS apps, basic reports and self-service password change. Confirm the features your tenant depends on against that list before assuming Free covers your sign-in needs, because anything beyond it sits in the paid tiers. Ask your Microsoft account team to confirm in writing which subscription your tenant holds today.
P1 and P2 per-user licensing
Entra ID P1 and P2 are licensed per user per month, and the listed rates assume an annual commitment, so your committed seat count drives the recurring cost. Microsoft includes P1 in Microsoft 365 E3 and Business Premium and P2 in Microsoft 365 E5, so users already on those plans may not need a separate purchase. Map each user to the license they already hold before pricing anything, and confirm with Microsoft how external and guest accounts are licensed.
Microsoft Entra pricingEntra Suite as a P1 add-on
Microsoft Entra Suite bundles network access, identity protection, governance and identity verification into one per-user offer. It requires an existing Entra ID P1 subscription, so the Suite cost is paid on top of P1 for the same users. Before comparing it with open-source options, list which of those four areas your organization actually needs. Ask the account team to state which components are included in your quote and which would be billed separately.
Cognito tiers and per-MAU pricing
Cognito user pools come in Lite, Essentials and Plus feature plans, and the charge scales with monthly active users. Essentials and Plus are priced per MAU at the published rates, so the tier you choose sets the rate applied to every billable user. Confirm which features each tier includes against your requirements, because moving to a higher tier changes the per-MAU rate for the whole user base, not only the new features.
Amazon Cognito pricingFree MAU allowances and federated users
Lite and Essentials include 10,000 free MAUs per month, and Plus has no free tier. Lite user pools created before November 22, 2024 keep a free tier of 50,000 MAUs, so the creation date of an existing pool can change the bill considerably. Users who sign in through SAML or OIDC federation get 50 free MAUs per month per account, after which a per-MAU charge applies on every tier. Check each pool's creation date and its federated user count against your current bill.
Drivers outside licenses and quote terms
The license line is only part of the total. User growth sets the recurring cost on both platforms, and Microsoft 365 licenses already paid for can hide Entra ID cost in the budget. Migration work is one-time: Cognito documents a user migration Lambda trigger and a bulk CSV import, and since July 15, 2026 CSV imports can carry password hashes. Ask for a quote that lists licenses, migration effort, application changes and post-go-live support as separate lines.
How Microsoft Entra ID vs Amazon Cognito compare on capabilities
This table compares how Microsoft Entra ID and Amazon Cognito handle sign-in, MFA, reporting, directory integration, identifiers, password hash import, data location and operating effort. Each row names the condition under which the difference changes a decision, plus what to confirm with Microsoft or AWS where this page does not document a capability. The main takeaway is that Cognito's attribute and sign-in settings are hard to undo, so check them before any user migration.
| Capability | Microsoft Entra ID | Amazon Cognito | When the difference matters and what to confirm |
|---|---|---|---|
| Sign-in to SaaS apps and federation | SSO to SaaS apps is included in Entra ID Free, which also provides MFA and basic reports. | Federation through SAML or OIDC for user pool sign-in; federated users get 50 free MAUs per month. | Matters when many non-Microsoft apps need SSO. Confirm app connector and protocol coverage with Microsoft and AWS. |
| MFA | MFA is included in Entra ID Free; confirm which policy features each license tier adds. | MFA is a user pool setting; confirm the supported factors and any plan or Region limits with AWS. | Matters when MFA must match an existing factor policy. Confirm both platforms' factor lists before design. |
| Reporting | Basic reports are included in Entra ID Free. Confirm which sign-in and audit log exports each tier provides. | Reporting depends on AWS logging setup; confirm which user pool events are logged and where. | Matters for audit evidence on sign-ins and admin changes. Ask each vendor for sample exports before committing. |
| Directory and Active Directory integration | Entra Connect synchronizes AD users, groups and password hashes; it is free with an Azure subscription. | Documented routes are a user migration Lambda trigger at first sign-in or a bulk CSV import. | Matters when AD stays the source of truth. Confirm whether Cognito offers any ongoing directory sync beyond these two routes. |
| User attributes and identifiers | Attributes such as userPrincipalName, mail and department appear in the user list export; confirm custom attribute limits with Microsoft. | Up to 50 custom attributes, which cannot be removed once added; usernames cannot change after creation. | Matters when the schema or login identifier may change later. Model attributes and sign-in identifiers before any import. |
| Password hash import | Password hashes come from AD through Entra Connect; confirm whether Entra accepts imported hashes from other stores. | CSV import accepts bcrypt, scrypt, Argon2id and PBKDF2 with SHA-256 since July 15, 2026, verified at first sign-in. | Matters when old hashes must work without a reset. AD NT hashes are not on the Cognito list; plan a reset path. |
| Data location | Tenant location is set at creation and cannot change; MFA data may be stored in North America or the tenant geo-location. | Confirm with AWS which Region holds the user pool and whether any data leaves that Region. | Matters for EU or sovereignty reviews. Ask for written data location terms covering both identity and MFA data. |
| Operating effort | Managed cloud service; you run the on-premises Entra Connect server if AD is the source. | Managed service; you own any migration trigger, attribute design and import jobs. | Matters when your team lacks AWS or AD operations skills. Estimate ongoing admin work for each sync or migration route. |
Where identity data lives and what leaving each one involves
Identity data sits in different places in each product, and that placement decides how hard an exit will be. The cards cover where Entra ID fixes its tenant and MFA data, which export paths exist, what Cognito's API withholds and which settings lock you in. Read them before you size the work, since most of the effort sits in applications, policies and passwords, and the user list is usually the simplest part.
Entra tenant location is fixed
An Entra ID tenant's data location is set from the country or region chosen at tenant creation, and it cannot be changed afterward. Multifactor authentication data is stored in North America and/or the tenant's geo-location, so a residency requirement that excludes North America needs checking before the tenant is used for sign-in. Ask whoever created the tenant which country or region was chosen, and confirm the MFA data location against your own residency policy before you plan the exit.
Data residency docsSovereign Entra clouds
Entra ID is also offered in US government and China clouds, and the China service is operated through a partnership with 21Vianet. Each cloud is a separate deployment, so confirm which one your tenant runs in before you compare residency options. Ask whether the SaaS applications you federate and the admin tools you rely on are offered in that same cloud, because the set may differ from the commercial service.
Entra CSV and what stays behind
Admins can download the user list as a CSV from the Entra admin center, under Users, All users, Download users. The file carries attributes such as userPrincipalName, mail, department and on-premises identifiers, which gives you the people side of the move. App registrations and policies must be recreated separately, because the file lists users only and does not carry the applications or policies that depend on them. Inventory those objects before scheduling cutover.
Bulk download stepsCognito ListUsers omits passwords
The ListUsers API returns at most 60 users per request, so a large pool needs repeated paged calls. Each result includes attributes, status, MFA options and timestamps, but the response has no password field. Either users set new passwords on the target, or the target imports password hashes, which requires obtaining them from Cognito first. Ask AWS in writing whether password material can be exported before you commit to either path.
ListUsers API referenceCognito schema and trigger lock-in
Several Cognito choices are fixed once the pool exists. Required attributes and the username or alias sign-in setting cannot be changed, and up to 50 custom attributes cannot be removed or changed after they are added. A username cannot be changed after creation, and the sub identifier uses a Cognito-specific format that does not conform to RFC UUID. Any migration trigger you wrote is an AWS Lambda function, so its logic and dependencies must be rebuilt for the new platform.
Confirm the user pool Region
Cognito user pools run in a specific AWS Region, and that Region determines where the directory data is held. Confirm the Region in the AWS console or with the account owner before you write any residency statement, since one account can hold several pools in different Regions. Record the Region next to the attribute inventory, MFA settings and trigger functions, so the data location of each part of the identity stack is documented in one place.
What moving between Entra ID and Cognito involves
This sequence moves application sign-in from Microsoft Entra ID to an Amazon Cognito user pool, with each application and user group tested before the old registrations are retired. Effort scales with the number of applications, the number of users and how many passwords can move without a reset, so inventory and password decisions come first.
Inventory applications, user sources and MFA methods
The admin lists every enterprise application and app registration in the tenant, with its protocol (OIDC or SAML), redirect URIs, claim mappings and assigned groups. Next, record each user source: cloud-only accounts, accounts synchronized from Active Directory through Microsoft Entra Connect, and guest users. Also note which MFA methods each group uses. The step is done when every application has a named owner and a protocol, and every user population has a known source.
Choose the target store and password path
Decide which Cognito user pool receives each population, and confirm that the pool's sign-in choices fit your needs, since username and alias sign-in cannot be changed after creation. For passwords, there are two paths. A user migration Lambda trigger moves each user at first sign-in with the existing password. A bulk CSV import can carry bcrypt, scrypt, Argon2id or PBKDF2 with SHA-256 hashes, verified at first sign-in. Accounts whose passwords cannot move need a reset. Confirm with Microsoft what password material, if any, can leave the tenant. The step is done when each population has a written password path and a reset list.
Map attributes before any import
Map each Entra attribute, such as userPrincipalName, mail, department and on-premises identifiers, to a Cognito standard or custom attribute, and record the data type and required flag for each. Cognito allows up to 50 custom attributes, and these cannot be removed or changed after they are added, so test the schema in a scratch pool first. Usernames cannot be changed after creation, and Cognito's sub identifier does not follow the RFC UUID format, so check any system that stores user IDs. The step is done when a reviewed mapping sheet exists and a test import has matched it.
Re-register each application's sign-in settings
For each application, create the matching app client in the Cognito user pool, or a SAML identity provider where the application needs one, then re-enter redirect URIs, scopes, logout URLs and signing certificates. Entra claim mappings do not carry over, so rebuild each claim the application reads and confirm its name and format with the application owner. Keep the Entra registration active until pilots pass. The step is done when a pilot user can sign in to each application and the token or SAML assertion carries the claims the application expects.
Import users and test with pilot groups
Run the migration trigger or CSV import for the pilot group only, then have pilot users sign in to each application, complete MFA enrollment and access a representative set of resources. Plan for users to re-enroll MFA methods, since Entra registrations are not part of the password import, and confirm which methods your Cognito configuration supports. Use the ListUsers API, which returns at most 60 users per request, to reconcile imported counts against the source export. The step is done when pilot failures are logged, fixed and retested.
Run both systems through cutover
Move applications in groups, keeping Entra ID and the Cognito pool running side by side. Freeze changes to user attributes in the source during each wave so the two copies do not diverge, and keep a tested path back to Entra ID for each application. Review sign-in success, access denials and help desk tickets after every wave before the next one starts. The step is done when the last wave has run with no open sign-in defects and the rollback path has been tested.
Retire old registrations after access checks pass
Once sign-in and access checks pass for every application, remove the old enterprise applications and app registrations from Entra ID, and disable the sign-in path they used. Keep the final user export and sign-in logs for the retention period your policy sets. If Microsoft 365 or other Microsoft services use the same tenant, that tenant stays in place for their sign-in, and only the migrated applications are retired. The step is done when no production application still points at Entra ID and the retained evidence is filed with the change record.
When Keycloak or ZITADEL fits better than either product
Keycloak or ZITADEL fits better when identity data must stay in your data center or an isolated network, when per-user or per-monthly-active-user fees grow with your user base, or when your team wants control over the identity stack. Cognito user pools are billed per monthly active user, and some pool settings cannot be changed after creation. Keycloak is licensed under Apache 2.0, is a Cloud Native Computing Foundation incubating project, and supports OpenID Connect, OAuth 2.0 and SAML 2.0, with built-in federation to LDAP and Active Directory. Version 26.8.1 was released on October 13, 2026, and the project plans four minor releases a year, so upgrades are a standing task. Its JSON realm export and import is limited as a backup method, and the Keycloak documentation notes that all nodes must be stopped during an export, so plan database backups separately.
ZITADEL is licensed under AGPL-3.0, with Apache 2.0 and MIT exceptions for specific directories, and supports OIDC, SAML 2.0, SCIM 2.0 and LDAP. It self-hosts with Docker Compose or Kubernetes on PostgreSQL 14 or later, and its Organizations and Projects model isolates data and policies across tenants, which suits multi-tenant customer identity. Have counsel review AGPL-3.0 obligations before you modify the code or offer it to users over a network. authentik's core is MIT licensed, and its free edition covers OIDC, SAML, LDAP, SCIM, RADIUS, Kerberos and proxy authentication with community support only. Its Enterprise edition is listed at $5 per user per month billed annually plus $0.02 per external user per month on the authentik pricing page, and it adds the Microsoft Entra ID integration, which matters if Entra ID must run beside the new platform during migration.
Running either platform means you own hosting, the database (PostgreSQL 14 or later for ZITADEL), high availability, upgrades, backups, monitoring and support. Support is the cost that changes most: authentik's free edition is community-supported only, so production use needs a paid subscription or an internal team with its own runbooks. Each application must be re-registered as a client in the new platform, with new redirect URIs, client secrets and token claims, so plan cutover one application at a time. Cognito Lambda triggers, such as the user migration trigger that moves users at first sign-in, and Entra ID Conditional Access policies do not carry over automatically. Map each trigger and policy in writing to its equivalent in the chosen platform and test it before cutover. Ask your architects and the vendor to confirm the high availability and backup design for your version before you size the cluster.
Microsoft Entra ID vs Amazon Cognito questions buyers ask before a decision
How much does Microsoft Entra ID cost compared with Amazon Cognito per user?
Entra ID is priced per user per month, while Cognito user pools are priced per monthly active user (MAU), so the two bills count different things and need to be compared at your actual usage. Entra ID Free comes with Microsoft cloud subscriptions such as Azure and Microsoft 365. Microsoft lists P1 from $7.00 and P2 from $10.00 per user per month with an annual commitment, and P1 is already included in Microsoft 365 E3 and Business Premium. On Cognito, the Essentials plan lists $0.015 per MAU after 10,000 free MAUs per month, and Plus lists $0.020 with no free tier. Illustrative only: 30,000 MAUs on Essentials leaves 20,000 billable MAUs, or $300 a month for the MAU charge alone. Check the Amazon Cognito pricing page for current tiers, and ask for a quote that lists the plan each user needs and any federated sign-in charges.
How long does a migration from Entra ID to Cognito take?
No single duration applies to every move, so the time comes from the scope you can count: applications, attributes, users and test cases. The first driver is how many applications sign in through the directory and how many claims, groups and redirect URIs each one expects. The second is the user import path. Cognito offers a user migration Lambda trigger that moves each user at first sign-in with their existing password, and a bulk CSV import that since July 15, 2026 can carry password hashes in bcrypt, scrypt, Argon2id or PBKDF2 with SHA-256, verified at first sign-in. The Cognito import guide explains both routes. The third driver is the configuration you must rebuild, since app registrations, groups and policies do not move with the user list. Ask for a written schedule tied to a named app list, user counts and a test plan.
What does the migration team need from our staff?
The team needs named people in four roles, and each role should have access and approval before work starts. Application owners confirm which apps sign in, the claims, groups and redirect URIs each one expects, and who accepts test results. Identity administrators hold the Entra ID roles needed to export users and to inventory app registrations and conditional access policies. AWS administrators need rights to create user pools, app clients, Lambda triggers and the IAM roles they use in the target account. Test users, ideally one per role and per application, check sign-in, MFA enrollment and password reset before cutover. Ask the partner to put each role, the access it needs and the approval path in writing, along with how that access is removed when the project ends.
Can our own team run this move, or do we need a partner?
A team with OIDC, SAML and directory experience can run a small move itself, but the answer depends on skills, the number of applications and how tight the cutover window is. Your own team should be able to write test cases, read token claims and run a rollback. A partner is most useful for the parts that are easy to underestimate: the app inventory, the import and password hash plan, the test matrix, the cutover runbook and the documentation your auditors will request. DeployOpen plans, implements, integrates, hardens, documents and supports self-hosted open-source platforms in your own infrastructure, and most engagements are fixed-scope, with the scope agreed in writing before work starts. Because Cognito and Entra ID are managed cloud services, confirm in writing whether a move between them, or to a self-hosted target, falls within that scope.
Does Entra ID or Cognito create lock-in, and what should we get in writing?
Both platforms create lock-in, mostly through identifiers, attributes and configuration, and the user list is usually the simplest part to move. On Cognito, a username cannot be changed after creation, the sub identifier uses a Cognito-specific format that is not an RFC UUID, and up to 50 custom attributes cannot be removed or changed once added. Required attributes and the username or alias sign-in choice are fixed when the pool is created. On Entra ID, a tenant's data location is set from the country or region chosen at creation and cannot be changed later, as the Entra ID data residency guidance describes. Request in writing: the full user export with attributes, any password hashes the platform will release, the export format, data location commitments, the terms for exit, and the notice period for price or plan changes.
Can Entra ID and Cognito run side by side during a migration?
Yes, both can run in parallel for a period, but only if the plan names which system is the source of truth for each user and each application at every stage. Cognito's migration Lambda creates a user in the pool at first sign-in, so users can move gradually while the old source stays in place for everyone else. A bulk CSV import moves every user at once, which suits smaller, cleaner cohorts. The risks are duplicate identities, a changed sub or username, attribute mismatches that break group-based authorization, and applications that trust a single issuer. Confirm whether MFA enrollments and active sessions carry over, how each application is pointed at the new issuer, and how a rollback works. Ask the partner for a written cutover and rollback plan with an agreed sign-off for testing.
How DeployOpen helps you choose and run the identity platform
DeployOpen helps teams that are reviewing Microsoft Entra ID or Amazon Cognito decide whether a self-hosted platform fits, and then carries out the migration inside their own infrastructure. We start with a written scope, build and test the platform with your security and identity teams, and hand over documentation and controls for compliance review. Engagements are fixed-scope, and ongoing support is available as a retainer.
How we scope
- The written scope names which Entra ID or Cognito applications, user sources and sign-in flows move, and which stay.
- Engagements are fixed-scope, so deliverables and timelines are agreed in writing before work starts.
- We map user export and import paths for your current provider, including whether password hashes can move.
How we build
- We plan and implement self-hosted Keycloak or authentik in your own infrastructure and cloud accounts.
- We integrate directory federation, SAML and OIDC client connections, and the application settings they replace.
- We harden the deployment, configure audit logging and document the controls your security team will review.
How we hand over
- We test sign-in, MFA, token lifetimes and admin access, then retest after fixes are applied.
- We design backups for Keycloak, since its realm export is documented as limited for backup and restore.
- We hand over runbooks, configuration records and admin training so your team can operate the platform.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Where Keycloak is chosen, we plan upgrades around its four minor releases a year and test each one first.
- We document evidence for your compliance assessors; independent auditors issue any audit report or attestation.

