An organization is transitioning its multi-account AWS environment to use an external SAML 2.0-compliant Identity Provider (IdP) for user authentication. The solutions architect has created the SAML identity providers in the target member accounts. However, when users attempt to authenticate, the federation process fails, and they are unable to assume the designated IAM roles. To diagnose this, the architect reviews the configurations of the member accounts and the parent AWS Organization. Which combination of actions must the solutions architect take to resolve the authentication failures and establish federated access to the target accounts? (Select TWO.)
- Modify the trust policy of the IAM roles in the target accounts to allow the `sts:AssumeRoleWithSAML` action, specifying the SAML identity provider as the principal and enforcing the `SAML:aud` condition.Answer
- Ensure that no Service Control Policies (SCPs) applied at the Organization or OU levels explicitly deny the `sts:AssumeRoleWithSAML` action for the target accounts.Answer
- CModify the trust policy of the IAM roles in the target accounts to allow the `sts:AssumeRole` action, specifying the SAML identity provider as the principal and checking the `SAML:iss` condition.
- DAttach a Service Control Policy (SCP) at the root level that explicitly grants the `sts:AssumeRoleWithSAML` action to all federated users, bypassing target account trust policies.
- EConfigure a resource-based policy on the SAML identity providers in the target accounts to delegate the `sts:AssumeRoleWithSAML` action to the external identity provider.
Answer
Configure the trust policy of the target IAM roles to allow `sts:AssumeRoleWithSAML` with the SAML provider as the principal and the correct `SAML:aud` condition, and verify that no parent SCPs explicitly deny the `sts:AssumeRoleWithSAML` action.
For federated users authenticating via SAML 2.0 to access AWS, target IAM roles must trust the SAML provider object as a principal and authorize the `sts:AssumeRoleWithSAML` action. Furthermore, because Service Control Policies (SCPs) act as boundaries across the Organization, any explicit deny on STS operations will block authentication globally within that OU or account, making it necessary to verify that SCPs do not block this action.
Step-by-Step Solution
Key Concept
SAML 2.0 Federation requires both target role trust configurations (`sts:AssumeRoleWithSAML` action) and compliance with Organization-level Service Control Policies (SCPs) which act as maximum permission boundaries.