Workforce users sign in through AWS IAM Identity Center from an external identity provider that sends a costCenter attribute. Permission set policies compare aws:PrincipalTag/CostCenter with resources' CostCenter tags, but every request is denied. What is missing?
Show the answer
Correct answerD. Enable attributes for access control and map costCenter to the CostCenter key.
AWhy not this: Identity Center sets session tags itself; permission set policies do not grant sts:TagSession for this.
BWhy not this: Tags on a permission set are not passed to users' sessions as principal tags.
CWhy not this: A permission set per cost center is role-based and loses the scaling benefit of ABAC.
DWhy this is right: Attributes for access control pass the mapped user attribute into the session as a principal tag.
IAM Identity Center passes user attributes into sessions as principal tags only when attributes for access control are enabled and the attribute is mapped to the key the policies use. Without it, aws:PrincipalTag/CostCenter is empty and the comparison fails. One permission set per cost center would abandon ABAC.