Microsoft Active Directory vs Amazon Cognito: which fits your sign-in problem
If you are facing a Windows Server renewal, a domain controller lifecycle decision or an AWS application build, start by recognizing that Microsoft Active Directory and Amazon Cognito often serve different users. Active Directory Domain Services stores users, computers and other objects, replicates directory data to every domain controller in a domain, and acts as the identity layer for Windows estates. Microsoft's comparison of Active Directory and Entra ID notes that most on-premises applications authenticate against it through LDAP, Windows-integrated authentication (NTLM and Kerberos) or header-based authentication. Amazon Cognito user pools are a managed sign-in service for the customers of an application, priced per monthly active user, so the two products are usually chosen by different teams for different reasons.
Our verdict is short. Choose Active Directory when the sign-in problem is Windows domain join, Group Policy and Kerberos on-premises. Choose Cognito when the application runs on AWS and AWS-hosted sign-in data is acceptable to your data owners. Choose a self-hosted option such as Keycloak, authentik or ZITADEL when identity data must stay in your own infrastructure, including data centers or air-gapped networks. Keycloak can also federate with an existing Active Directory through LDAP, so a self-hosted identity layer does not have to replace the domain on day one.
The decision turns on three questions. First, which systems authenticate: list Windows endpoints, Linux hosts, SaaS applications and custom apps, and note the protocol each one uses, because Windows domain join and Group Policy have no direct equivalent in Cognito. Second, where the data must reside: ask legal and data owners whether user records, attributes and password hashes can sit in AWS. Third, who operates the service: AWS runs Cognito, while a self-hosted platform makes patching, backup, upgrades and on-call your team's responsibility or your partner's under a written scope. Before a pilot, check the exit path too. The ListUsers API in Cognito returns at most 60 users per request and does not return password fields, so plan how credentials and attributes will leave the service. Confirm current import and export options with AWS before you commit.
Which fits by scenario: Windows estates, AWS apps or both
This table compares Microsoft Active Directory and Amazon Cognito across six common scenarios, with the condition that makes each fit hold. Read each row as a test against your own estate, since one organization often has several rows pointing in different directions. The main takeaway is that AD fits Windows devices, LDAP and Kerberos workloads, while Cognito fits customer sign-in inside AWS applications.
| Scenario | Better fit | Why |
|---|---|---|
| Windows domain join or Group Policy | Microsoft Active Directory | AD domain-joins Windows devices and manages them with Group Policy. Cognito has no equivalent. |
| On-premises apps using LDAP or Windows-integrated authentication | Microsoft Active Directory | Most on-premises apps use LDAP, NTLM, Kerberos or header-based sign-in. Cognito user pools do not serve LDAP or Windows-integrated sign-in. |
| SaaS single sign-on for employees | Neither alone | Microsoft's comparison says AD needs AD FS or another federation system for SaaS apps. Cognito serves app sign-in, so workforce SSO into SaaS apps needs a separate broker. |
| Customer-facing sign-in in an AWS application | Amazon Cognito | User pools serve customer sign-in and bill per monthly active user. Running customer accounts in a Windows domain adds directory exposure to secure. |
| Linux hosts needing Kerberos | Microsoft Active Directory | Linux hosts join AD as a Kerberos realm through third-party tools or manual setup. Test one host first. Cognito provides no Kerberos service for hosts. |
| Team without Windows Server operations skills | Amazon Cognito | AD means running domain controllers, replication and the Windows Server lifecycle. Cognito is managed, but attribute and username choices are fixed after creation. |
How the decision path sorts Windows, AWS and self-hosted sign-in
The diagram starts with the sign-in need and sorts it into four paths. Windows domain join, Group Policy and Kerberos stay with Active Directory domain services. An application on AWS that serves customer users points to Amazon Cognito. When data must stay in your own infrastructure, Keycloak, authentik or ZITADEL are the self-hosted candidates. Where AD stays for Windows but Linux needs identity, the hybrid path keeps AD and sets up a trust from FreeIPA. Check which path each system falls into before choosing a product, because one organization often needs more than one.
Sign-in needs sorted into Active Directory, Cognito, self-hosted or hybrid paths.
Microsoft Active Directory vs Amazon Cognito capability by capability
This table compares Microsoft Active Directory, the on-premises directory behind Windows domains, with Amazon Cognito, AWS's managed sign-in service for applications, across nine capabilities. Read each row as a question of who the identity serves and who operates it. The main takeaway is that the two solve different problems, so the cells marked for confirmation need a written answer from the vendor before you plan a move.
| Capability | Microsoft Active Directory | Amazon Cognito |
|---|---|---|
| Primary purpose | Windows domain directory for users, computers, authentication and Group Policy on your network. | Managed sign-in and user directory for applications, with user pools and federation. |
| User store | Objects replicated to every domain controller in a domain, with a schema and global catalog. | User pools hold users. Up to 50 custom attributes, which cannot be removed or changed once added. Confirm tenant isolation with AWS. |
| Protocols | LDAP, Kerberos and NTLM for Windows and on-premises apps. SaaS apps need a federation service such as AD FS. | SAML 2.0 and OIDC federation. Confirm with AWS whether any LDAP or Kerberos interface is offered. |
| Windows domain join and Group Policy | Domain-joins Windows devices and manages them with Group Policy. | No domain join or Group Policy for Windows devices. It signs users in to applications. |
| Linux authentication | Needs third-party tools or Kerberos realm configuration on each Linux host. | Not a host login directory. Confirm with AWS whether any Linux login path is offered. |
| SaaS single sign-on | Needs AD FS or another federation system to reach SaaS apps. | Federates SAML and OIDC apps. Confirm the setup steps for each SaaS vendor you use. |
| Where it runs and who operates it | Your domain controllers in your data center or cloud VMs. You patch, back up and upgrade them. | AWS-hosted managed service that AWS operates. Confirm the regions and data location for your user pool. |
| Bulk export | Export through LDAP queries or directory tools. Confirm which attributes and secrets you can extract. | ListUsers returns 60 users per request with no password field. Confirm hash export options with AWS. |
| Multi-factor authentication | No native MFA in AD DS. Confirm which add-on or federation service supplies it. | ListUsers shows MFA options per user. Confirm the supported factors with AWS. |
Microsoft Active Directory vs Amazon Cognito pricing structure, from published facts
Active Directory is licensed by the cores in each server and by the users or devices that connect to it. Cognito bills by monthly active users and by federated sign-ins. The four cards separate these models so you can see which costs are fixed per server, which scale with headcount and which scale with login activity.
Windows Server core licensing
Domain controllers run on Windows Server, which Microsoft licenses per core with a minimum of 16 cores per server and 8 per processor. Standard and Datacenter both need a Client Access License for every user or device that accesses the server. Microsoft's suggested prices are $1,176 for Standard and $6,771 for Datacenter for 16 core licenses, and they vary by region. Ask for the core count of each domain controller and the CAL count for every other server that authenticates users.
Windows Server pricingCognito user pool tiers
User pools are priced per monthly active user (MAU) and vary by feature plan. Essentials is $0.015 and Plus is $0.020 per MAU. AWS's Lite example bills 90,000 MAUs above the free tier at $0.0055 and the next 850,000 at $0.0046, so the rate falls as volume rises. Lite and Essentials include 10,000 free MAUs per month, Plus has no free tier, and Lite pools created before November 22, 2024 keep 50,000. Check which plan has the features you need, then price your MAU forecast against it.
Cognito pricing pageCognito federated sign-ins
Users who sign in through SAML or OIDC federation get 50 free MAUs per month per account. After that, AWS charges $0.015 per MAU on every tier, so choosing a cheaper feature plan does not lower this line. List the federated applications and their user counts separately so the forecast shows this line on its own. Confirm whether a federated user also counts toward your user pool MAU total before you forecast.
Bill drivers and quote requests
Active Directory costs rise with the number of domain controllers, the cores in each one, the CAL count and your regional price. Cognito costs rise with monthly active users, the feature plan you choose and federated sign-ins. Ask which Windows Server costs are one-time and which recur under your licensing agreement, and confirm the MAU definition in AWS's terms. Request the core count per server, the CAL count, the monthly MAU forecast by plan and whether migration and support are included.
What running each costs in staff time, not only in licenses
The cost split between these two platforms falls in different places. With Cognito, the one-time work is the integration and user migration, and the recurring cost is a monthly bill that AWS meters per monthly active user. Your staff or an integration partner do the one-time work, and AWS bills the usage. Lite and Essentials include 10,000 free MAUs per month, Essentials lists $0.015 and Plus lists $0.020 per MAU, and users who sign in through SAML or OIDC federation get 50 free MAUs per month per account before $0.015 applies. Model the bill from your actual sign-in pattern. For migration, a user migration Lambda trigger moves users at first sign-in, while CSV import, since July 15, 2026, can carry bcrypt, scrypt, Argon2id or PBKDF2 with SHA-256 password hashes. Confirm your current hash format against that list before you choose a path. Cognito user import documentation covers both options.
Cognito's settings are the costliest part to change later, so design time belongs up front. Required attributes and the choice between username and alias sign-in cannot be changed after the pool is created, and custom attributes cannot be removed once added, with a limit of 50 per pool. A username cannot be changed after the user is created, and the sub identifier uses a Cognito-specific format that does not conform to RFC UUID, so check any downstream service that assumes UUIDs. Have your architects and security team sign off on the attribute schema and sign-in model before the first user is migrated. If a consultant does this design work, put the deliverables, such as the schema and a migration runbook, in a written fixed scope.
Active Directory's recurring work is staff time inside your own estate. Domain controllers run on Windows Server, licensed per core with a 16-core minimum per server, plus Client Access Licenses for users and devices. Microsoft's pricing page lists suggested prices of $1,176 for Standard and $6,771 for Datacenter for 16 core licenses, and says prices vary by region. Patching, backups and lifecycle moves are paid for by your staff. Windows Server 2016 extended support ends January 13, 2027, so each domain controller still on 2016 needs an upgrade or replacement decision before then, a one-time project with its own staff and licensing cost. Cost also grows with the number of domain controllers, because AD DS replicates directory data to every domain controller in a domain. Ask your Microsoft licensing partner to quote the cores you actually need, and count the staff hours for each domain controller's patch cycle.
Where the data lives and what leaving Amazon Cognito involves
Active Directory keeps users on domain controllers you run, while Cognito keeps them in a user pool that AWS operates in a region you choose. The four cards cover where that data sits, which export paths exist, which Cognito choices are hard to reverse, and what a move to another platform requires.
Where the directory runs
Active Directory stores users, computers and groups on domain controllers that you run, and those controllers replicate directory data to every domain controller in the domain. A Cognito user pool is a managed service that lives in the AWS region you pick when you create it. Confirm which region the pool sits in, who in your AWS organization can read user data, which encryption and logging controls apply, and whether your data residency rules accept that region. Get the current answers from AWS in writing before you sign off.
Export paths and their limits
The Cognito ListUsers API returns up to 60 users per request, with attributes, status, MFA options and timestamps. Its response has no password field, so an API pull carries profiles but not credentials. Password hashes enter a pool through the CSV import instead: since July 15, 2026, Cognito can import bcrypt, scrypt, Argon2id or PBKDF2 with SHA-256 hashes, verified at each user's first sign-in. Page through a small set of results against a known account, then compare the count with your source before a full pull.
ListUsers API referenceContract and identifier lock-in
Three Cognito choices are hard to reverse. A username cannot change after the user is created, so a rename in the source system has to be handled as a new account. Up to 50 custom attributes can be added, and once added they cannot be removed or changed, so the schema you copy into a new platform stays in the pool. The sub identifier uses a Cognito-specific format that does not conform to RFC UUID, so any application that stores sub needs a mapping before a move. Inventory every application that stores sub and every custom attribute before you commit.
User attributes guideSteps to leave Cognito
Moving off Cognito usually needs one of two entry points on the target platform: a migration hook that verifies the old password at first sign-in, or a bulk import that accepts the hash scheme your pool uses. Confirm the target supports that exact scheme before you plan the cutover. Test sign-in for each application, the MFA settings and the sub mapping with a pilot group. Confirm with AWS which credential material can be exported from your pool, because that answer decides which of the two entry points is possible.
Importing users guideWhen Keycloak, authentik or ZITADEL fits better than either product
A self-hosted option fits when many applications need SAML or OIDC single sign-on, when identity data must stay in your own infrastructure, and when apps and devices do not need a Windows domain join. Three products fit that profile. Keycloak is Apache License 2.0 software, is a CNCF incubating project and supports OpenID Connect, OAuth 2.0 and SAML 2.0, with release 26.8.1 published October 13, 2026. authentik's core is MIT licensed, but its enterprise directory falls under a separate license, and the free edition offers community support only. ZITADEL is AGPL-3.0 software that runs on PostgreSQL 14 or later and organizes tenants as Identity System, Organizations and Projects, which suits multi-tenant customer identity. Shortlist the product that matches your protocol and tenancy needs, then test it against your own application list.
Most Windows estates keep Active Directory for domain joins, Group Policy and Windows-integrated sign-in, and federate their applications to it. Keycloak's built-in user federation can connect to existing LDAP and Active Directory servers, so SAML and OIDC applications can sign in with current AD accounts while credentials are still checked against AD. If the estate also runs Linux servers that need Kerberos, sudo and host policies, FreeIPA can form a trust with AD so AD users reach Linux resources. Before choosing a product, confirm whether any application still depends on NTLM or Kerberos sign-in, because a SAML or OIDC product does not cover that path.
Running any of these means owning the work Active Directory does for you today: hosting, a supported database, backups, upgrades, MFA, logs and testing. Keycloak's realm export is not a full backup, and its import and export guide says all nodes must be stopped while it runs, so plan database-level backups and a restore test as well. Keycloak plans four minor releases a year, and since 26.0 breaking changes in minor releases are opt-in, so schedule upgrades and test each one in staging. authentik's pricing page lists Enterprise at $5 per user per month billed annually plus $0.02 per external user per month, and Enterprise Plus from $20k annually, while its free edition has community support only. Compare those subscription costs with staff time for hosting, backups and upgrades, and confirm MFA methods and log retention for your version before go-live.
What a move between Active Directory and Cognito involves, step by step
The sequence starts with what depends on Active Directory today and ends with a decision about the directory itself. Each step produces a record that the next one needs, so the team can stop at any point with a clear state. Most of the effort sits in the inventory, attribute design and testing stages, not in the cutover itself.
Inventory applications that authenticate to AD
List each application, service and script that signs users in against Active Directory, and record the protocol it uses: LDAP, Kerberos, Windows-integrated authentication, header-based authentication, or SAML and OIDC through a federation service. Note the owner, the user population and whether the application can change its identity settings. Many on-premises applications use LDAP or header-based authentication, and SaaS applications usually need a federation layer, so expect a mix. Done means every application has one named owner and one recorded protocol, and the owners have reviewed the list.
Separate workforce sign-in from customer sign-in
Decide which identities stay on the workforce side and which belong to customer-facing applications. Employees, contractors and administrators, along with Windows logons and Group Policy, usually stay with Active Directory or a workforce identity service, while customer accounts move to a user pool with its own attributes, password policy and MFA settings. Record which group or application owns each population, because the two have different lifecycles and different administration paths. Done means two named inventories exist, each application sits in exactly one of them, and the exceptions have been reviewed.
Design Cognito attributes before creating the pool
Map each Active Directory attribute that your applications read, such as mail, department and group membership, to a standard or custom Cognito attribute, and to a Cognito group where group logic is needed. A user pool allows up to 50 custom attributes, and custom attributes cannot be removed or changed once added. Required attributes and the choice between username and alias sign-in cannot be changed after the pool exists, and a username cannot be changed after the user is created. The sub identifier uses a Cognito-specific format that does not conform to RFC UUID, so check any code that expects a UUID. Done means a signed attribute schema, reviewed by the application owners, exists before anyone creates the pool.
Choose a migration path for each population
Pick how users enter the pool. A user migration Lambda trigger migrates each user at first sign-in and can verify the password against your directory at that moment, so the user keeps the existing password. A bulk CSV import can carry password hashes in bcrypt, scrypt, Argon2id or PBKDF2 with SHA-256, verified at first sign-in, a format option added since July 15, 2026. Active Directory does not keep passwords in those formats by default, so confirm with your identity team which hash source, if any, you can export. Many estates end up relying on the trigger or on password resets, so settle the choice early. Done means a written decision for each population, signed off by security.
Test sign-in, MFA and token claims in staging
Run each migrated application against a staging user pool with test accounts from every population. Check password sign-in on each migration path, MFA enrollment and challenge, lockout behavior, and the claims in the ID and access tokens, including every attribute and group the application reads. Compare those claims with what the application receives from Active Directory today, and fix mapping gaps before anything goes live. Done means a written test record for each application, with every failed case either fixed or accepted in writing by the owner.
Cut over one application at a time
Move applications in an agreed order, starting with the least critical, and switch each one's identity configuration to the user pool. Keep the Active Directory path available for a rollback period that the owners agree on in advance, and watch sign-in errors, token failures and support tickets after each switch before moving the next application. Where users have accounts on both sides during the transition, document which sign-in path they should use. Done means each application runs on the new pool, the old configuration is removed, and the owner has signed off.
Decide what stays in Active Directory
Decide whether Active Directory remains for Windows workloads, domain-joined devices and Group Policy, or retires on your Windows Server lifecycle plan. Check the support dates for each domain controller's Windows Server version, since Windows Server 2016 extended support ends on January 13, 2027, and any controller still on that version needs an upgrade, replacement or retirement decision. Linux hosts that depend on Active Directory need their own plan, because the directory does not bring them into Cognito. Done means each domain controller has a written decision and the remaining Active Directory dependencies are listed with named owners.
Questions buyers ask before choosing or hiring help
What does each option cost to run and what drives the bill?
Active Directory is paid through Windows Server licensing plus the hardware and staff that run it, while Cognito is metered per monthly active user. Microsoft's Windows Server pricing page lists suggested prices of $1,176 for Standard and $6,771 for Datacenter for 16 core licenses, and notes that prices vary by region. Windows Server licensing is per core with a minimum of 16 cores per server, and every user or device accessing it needs a Client Access License, so core count and user count drive that bill. Cognito's Essentials plan lists $0.015 per monthly active user and Plus lists $0.020, with 10,000 free MAUs per month on Lite and Essentials. Federated users who sign in through SAML or OIDC get 50 free MAUs per month per account, then $0.015 per MAU on every tier. Self-hosted Keycloak is Apache 2.0 licensed, so its recurring cost is infrastructure, staff time and any support you buy. Ask every quote to separate one-time migration work from recurring license, hosting and support lines.
Can Cognito replace Active Directory for Windows domain join?
Not for domain join. Active Directory domain-joins Windows devices and manages them with Group Policy, and Microsoft's comparison notes that Linux machines need third-party tools or Kerberos domain configuration to authenticate against AD. Cognito is built for application sign-in over OIDC and SAML, so it covers web and mobile apps rather than the machine trust and policy that a Windows domain provides. Confirm this against the current AWS documentation for your exact device and policy needs before you decide. The scope to check is whether any Windows workstation, file server or service account depends on Kerberos, NTLM or Group Policy. If it does, the practical options are a Windows-compatible domain controller such as Samba AD, or keeping Active Directory for those devices while moving application sign-in to Keycloak or authentik. The cost driver is the number of Windows devices and servers that still need domain membership.
How long does a migration off Active Directory or to Cognito take?
Duration depends on scope, and this page does not set one. The effort is driven by the number of applications that sign in against the directory, the attributes each one needs, and whether users can keep their existing passwords during the move. Cognito offers a user migration Lambda trigger that migrates users at first sign-in with their existing passwords, and a bulk CSV import. Since July 15, 2026, that CSV import can carry bcrypt, scrypt, Argon2id or PBKDF2 with SHA-256 password hashes, verified at each user's first sign-in. The ListUsers API returns no password field, so any export needs its own plan for credentials. Custom attributes cannot be removed after they are added, and usernames cannot change after creation, so schema decisions made early are costly to reverse. Ask for a written plan that names each phase, its checkpoints and its rollback path before you agree to any date.
What does our team need to provide for an identity migration?
Plan to provide an application inventory, named identity owners, test users and agreed change windows before any cutover. The inventory should list every system that signs in against the directory, its protocol (LDAP, Kerberos, SAML, OIDC or header-based authentication), its owner and its user count. Identity owners decide attribute mappings, group rules and who approves access changes. Test users must cover each role and each application, including service accounts and any device-based sign-in. Change windows matter because an application can fail during cutover, so you need a rollback path and staff available to act on it. For Cognito, the attribute schema is fixed once created, so attribute decisions need owner sign-off first. The cost driver is the number of applications and the number of owners who must review them. Ask your provider for a written list of the inputs it expects from you, with a named owner for each.
Can our own engineers run this migration, and when does outside help pay off?
Yes, a team with directory, application and security skills can run the work in-house. Outside help pays off when the estate has many applications with unusual sign-in methods, when the team has no one who has run LDAP or Kerberos in production, or when a platform date arrives before internal capacity is free. Windows Server 2016 extended support ends on January 13, 2027, so domain controllers still on that version need an upgrade or replacement decision before then. Outside help is usually bought as a fixed-scope engagement, a retainer for ongoing support, or both. In-house work also carries recurring costs, including staff time for patching, backups, upgrades and on-call response. DeployOpen plans, implements, customizes, integrates, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms inside your own infrastructure. Before you choose, ask what your team would own after handover.
What does a DeployOpen quote include and how is it calculated?
A DeployOpen quote follows from a written, fixed scope that states the deliverables and timelines agreed before work starts. DeployOpen does not publish a price list, so the quote comes from the scope document itself. The scope should name the systems in play, the number of applications and identity sources, the protocols in use, the evidence outputs you need and the testing or backup work expected. Each of these items drives effort, so more applications or more federation sources increase the quote. Ongoing support, upgrades and continuous testing are available as retainers. Ask for the quote to show one-time work and recurring retainer work as separate lines, with the assumptions about your environment written out. DeployOpen prepares systems and evidence for compliance assessments but does not issue audit reports or certifications, which independent auditors and certification bodies do. Compare quotes against the same written scope.
How DeployOpen helps evaluate, implement or integrate the choice
DeployOpen plans, implements, integrates, hardens, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For Microsoft Active Directory and Amazon Cognito, that means checking which identity sources, applications and user data your organization depends on before choosing a replacement, then building it in your environment and handing over the documentation.
How we scope
- Each engagement is fixed-scope, with deliverables and timelines agreed in writing before work starts.
- Inventory each application that authenticates against the current directory, its protocol and its user attributes.
- Record which user fields, group memberships and Cognito custom attributes must carry over, since some cannot change later.
How we build
- Stand up the target identity platform in your infrastructure, with SSO, MFA and audit logging configured for review.
- Connect Active Directory through LDAP federation, and plan Cognito user moves around exportable password data.
- Test each sign-in flow against production-like clients, including Windows devices that depend on Kerberos today.
How we hand over
- Deliver written configuration, realm or pool settings, and a list of every connected application.
- Document backup and restore steps, noting that Keycloak realm exports have limits as a backup mechanism.
- Hand over a sign-off checklist for your security and compliance teams to review the platform and its audit logs.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Confirm Cognito pricing and quota terms with AWS before the quote, since the per-MAU structure drives the comparison.
- Confirm Windows Server licensing and lifecycle dates for each domain controller before the scope is signed.

