Skip to Content
Asterrr's Handbook
3 · Infrastructure security

Active Directory Trust and SSO

Trust directions for AWS Managed Microsoft AD, ADFS SAML federation, and IAM Identity Center with AD Connector.

The decision: which trust or federation path links the on-premises Active Directory to AWS for this sign-in requirement?

Three ways connect an on-premises Active Directory to AWS. A trust between AWS Managed Microsoft AD and your domain. ADFS SAML federation straight to IAM roles. IAM Identity Center on top of a managed AD (two-way trust) or an AD Connector.

Corporate networkAWSsign inauthenticateSAML assertionAssumeRoleWithSAMLCorporate userADFS serverActive DirectorySTSIAM role
ADFS federation. The browser carries the SAML assertion to STS, which returns temporary credentials for the mapped role.

Trust direction

A trust is configured on both domains and the two halves must complement each other. Outgoing on one side pairs with incoming on the other. Only one trust can exist per pair of domains. To change direction, delete it and recreate it as a new trust.

TermMeaning
Trusting domainHolds the resources. It trusts users from another domain.
Trusted domainHolds the users who get access.
Outgoing trust (from the AWS side)AWS Managed AD is the trusting domain. On-premises users can reach AWS-side resources.
Incoming trust (on the AWS side)AWS-side users can reach on-premises resources.
Two-wayBoth directions.

The arrow of trust points the opposite way to the flow of access.

FactDetail
Trust typesExternal and forest trusts are both supported
Two-way trust requiredAWS enterprise apps such as IAM Identity Center, WorkSpaces, WorkDocs, Amazon Quick and WorkMail, plus console sign-in through the directory
One-way is enoughEC2, RDS and FSx for Windows
Selective authenticationOptional. Limits access to approved accounts and service accounts
PrerequisitesNetwork path (VPN or Direct Connect), open AD ports, DNS conditional forwarders on your domain, Kerberos pre-authentication on user accounts, unique NetBIOS and domain names
ScopeTrusts are a global feature. With Multi-Region replication, manage them in the primary Region
Not supportedSingle-label domains

ADFS federation to IAM

  1. Add AWS as a relying party trust in ADFS.
  2. Create IAM roles (for example Admin and Development) that trust the SAML provider.
  3. ADFS builds a SAML assertion listing the role ARNs the user may assume, based on AD group membership.
  4. The browser posts the assertion to STS. AssumeRoleWithSAML returns temporary credentials and the console opens.

Each AWS account needs its own trust configuration in ADFS, which becomes heavy to maintain. Identity Center removes that.

IAM Identity Center with AD

OptionHow it worksWatch for
AWS Managed Microsoft AD with two-way trustTrust one way grants authentication, trust the other way lets Identity Center read user and group metadataOne-way trust does not work with Identity Center
AD ConnectorDirectory gateway that forwards requests to your AD. Nothing is cached in AWSSingle domain only. Users reset passwords in AD, not in the access portal

Exam signal

"Single sign-on to many accounts using on-premises AD credentials" means IAM Identity Center. "No directory data stored in AWS" means AD Connector.

Exam trap

A one-way trust from AWS Managed AD cannot back Identity Center, which needs two-way. Also, the trust direction name is confusing. Think "who holds the resources" to pick incoming or outgoing.

Legacy

IAM Identity Center was called AWS Single Sign-On (AWS SSO) in older material.

Further reading

On this page