IAM Identity Center for workforce users
To pass the identities of AWS IAM Identity Center users to AWS Context, first set up trusted identity propagation (TIP) in IAM Identity Center. Then prepare AWS Context to use those identities.
Set up trusted identity propagation
Turn on IAM Identity Center, connect your source of identities to it, and provision your users. AWS Context calls IAM Identity Center in the Region of the Agent Context. If your organization instance is in another Region, replicate the instance to the Agent Context’s Region. After you add a Region, your users sign in again so that their new tokens work there. For details, see Using IAM Identity Center across multiple AWS Regions. If you use an account instance of IAM Identity Center, create the Agent Context in the account and Region of the instance, because account instances do not support cross-Region trusted identity propagation.
With TIP, a user’s AWS credentials carry the user’s identity. The credentials carry an IAM Identity Center user in the following cases:
-
The user signs in to the AWS access portal and uses a permission set. Permission sets require an organization instance of IAM Identity Center.
-
An application creates an identity-enhanced IAM role session for the user. The application calls the IAM Identity Center
CreateTokenWithIAMoperation to get an ID token for the user. An application that signs users in with another identity provider exchanges that provider’s token through a trusted token issuer. The application then callsAssumeRole, and passes thests:identity_contextclaim from the ID token inProvidedContextswith the provider ARNarn:aws:iam::aws:contextProvider/IdentityCenter.
If your instance uses the legacy experience of trusted identity propagation, the trust policy of each role that receives the identity context must allow sts:SetContext. In the legacy experience, an AssumeRole call without ProvidedContexts does not carry the user’s identity to the new role session. If your application chains roles, pass the identity context on each AssumeRole call.
For more information about trusted identity propagation in IAM Identity Center, see the following topics:
Prepare AWS Context for IAM Identity Center users
To prepare AWS Context for IAM Identity Center users, complete the following steps:
-
If your identity store is in a different account from the Agent Context, add the identity store ARN to the Agent Context’s trusted identity sources. The trusted identity sources are identity stores and identity providers in other accounts whose users the Agent Context accepts. An organization instance of IAM Identity Center belongs to the management account of your organization. To find the identity store ARN, call the IAM Identity Center
DescribeInstanceoperation and readIdentityStoreArn. To add the ARN, see Trust identity sources in other accounts. -
If your instance uses the legacy experience of trusted identity propagation, add
sts:SetContextto the trust policy of each connection’s data access role. For details, see Allow data access roles to receive user identities. -
If you use Amazon Bedrock Managed Knowledge Bases connections, make sure that each user has an email address in IAM Identity Center. AWS Context filters documents by their access control lists (ACLs) with the user’s primary email address. If no email address is marked primary, AWS Context uses the first email address listed for the user. If a user has more than one email address, mark the address that your ACLs use as primary.
If you use AWS Glue Data Catalog connections, also set up Lake Formation for your users. Connect Lake Formation to the IAM Identity Center instance that your users sign in through, and grant Lake Formation permissions to the users or their groups. For details, see Integrating IAM Identity Center and Granting permissions to users and groups.
If your instance uses the legacy experience, also do the following:
-
Give the IAM Identity Center application that issues your users' tokens the
lakeformation:queryaccess scope. -
Register each table’s Amazon S3 location with a custom IAM role whose trust policy allows
sts:SetContext, not with the Lake Formation service-linked role. For the role requirements, see Requirements for roles used to register locations. -
Call AWS Context with an identity-enhanced role session. With a session from a permission set,
AgenticRetrievedoes not read AWS Glue Data Catalog connections, andExecuteSqlandStartEvaluationreturn an access denied error. If the Agent Context has no other connections,AgenticRetrievealso returns this error.
After you complete these steps, call AWS Context with a session that carries the user’s identity. Each connection can then return only the data that the user is authorized to access. For what each connection requires, see Identity requirements by connection type.