A company is implementing a federated access solution using an on-premises SAML 2.0 compliant Identity Provider (IdP) for their AWS Organizations environment. While testing the integration, a user successfully authenticates against the identity provider and selects a role named FederatedAdminRole in a target member account. However, the redirection to the AWS Management Console fails, and the user receives the following error message: 'Access denied. Action: sts:AssumeRoleWithSAML is not authorized.' The Solutions Architect verifies that the SAML identity provider is correctly created in the IAM console of the target account, and the user's SAML assertion contains the correct role and provider ARNs. Which configuration issue is the most likely cause of this error?
- The trust policy of the target IAM role specifies the principal as the SAML provider but designates the action as sts:AssumeRole rather than sts:AssumeRoleWithSAML.Answer
- BThe Service Control Policy (SCP) attached to the target member account's Organizational Unit does not contain an explicit allow statement for the sts:AssumeRoleWithSAML action.
- CThe identity-based permission policy attached to the target IAM role does not explicitly grant permissions for the sts:AssumeRoleWithSAML API action.
- DThe SAML assertion generated by the Identity Provider lacks the mandatory https://aws.amazon.com/SAML/Attributes/RoleSessionName attribute, causing the request to fail authorization.