View a markdown version of this page

Control access with the identity context - AWS IAM Identity Center

Control access with the identity context

You can control access based on the identity context in two ways. We recommend group-based access control where available, because group membership changes in your identity source apply automatically.

Group-based access control (recommended)

Services that have their own grant engines, such as AWS Lake Formation and Amazon S3 Access Grants, can grant access directly to IAM Identity Center groups. When a user's group membership changes in your identity source, their access changes with it, and you don't need to update policies when someone joins or leaves. For setup guidance, see Setting up AWS Lake Formation with IAM Identity Center and Setting up Amazon S3 Access Grants with IAM Identity Center. For the latest information about Lake Formation support, see the AWS Lake Formation Developer Guide.

IAM policy-based access control with the username

IAM can evaluate the propagated username and other IAM Identity Center context keys in identity-based policies, resource-based policies, role trust policies, service control policies (SCPs), and resource control policies (RCPs). Because these policies name individual users, you must update them when someone joins, leaves, or is renamed. For examples, see Use the identity context for IAM policies.