An enterprise is implementing a multi-account strategy using AWS Organizations. Users must authenticate using an external SAML 2.0 Identity Provider (IdP) to access resources in several member accounts. A solutions architect creates the IAM SAML identity provider resource in each target member account and configures the corresponding federated IAM roles. During testing, users are successfully authenticated by the corporate IdP and redirected to AWS, but they receive an Access Denied error when attempting to assume the target IAM role in the member account. Which configuration error is the most likely cause of this issue?
- AThe permissions policy attached to the IAM role in the member account lacks an explicit statement allowing the sts:AssumeRoleWithSAML action on the SAML provider resource.
- BThe Service Control Policy (SCP) attached to the organizational unit containing the member accounts does not explicitly grant the sts:AssumeRoleWithSAML permission to the federated users.
- The trust policy of the IAM role in the member account specifies the SAML provider as the federated principal but designates the sts:AssumeRole action instead of sts:AssumeRoleWithSAML.Answer
- DThe trust policy of the IAM role in the member account designates the target member account's root principal as the federated entity instead of specifying the SAML provider ARN.
Answer
The trust policy of the IAM role in the member account specifies the SAML provider as the federated principal but designates the sts:AssumeRole action instead of sts:AssumeRoleWithSAML.
The trust policy of the IAM role must permit the sts:AssumeRoleWithSAML action and specify the SAML provider as the federated principal. If the action is configured as sts:AssumeRole, STS will reject the SAML assertion because sts:AssumeRole is designed for standard IAM security credentials, not SAML assertions.
Step-by-Step Solution
Key Concept
SAML 2.0 Federation Trust Relationships and STS Actions
Estimated Time:2m 30s