16 of 50 in All Controls
aws

Centralized Identity Management with IAM Identity Center

IDAWS-IAM-004
Severity
critical
Automation
Auto
Category
iam
Enforcementmandatory
Complexity / Impact
medium(disruptive impact)
Risk Profile
medium likelihood(low residual)
Cloud Scopeaws:root
Environments
productionnon-production
Target Resources
IAM Identity Center
Services
identitycenterorganizationsiam
Tags
identityssoiamauthenticationcentralized-managementfederationlanding-zone
Frameworks
CIS AWSNIST 800-53ISO 27001PCI DSSSOC 2AWS FSBP
Governance
Cloud Security (quarterly)
Created
2026-05-03
Last Updated
2026-06-06

Specification & Description

Deploy AWS IAM Identity Center as the sole human access mechanism for all landing zone accounts, integrated with an external IdP, and enforce via SCP that direct IAM user creation and console access are blocked in member accounts.

Technical Specifications

IAM Identity Center is enabled in the Management account and applies organization-wide. It serves as the single control plane for human identity: users authenticate through the corporate IdP (Entra ID, Okta, Google Workspace) via SAML 2.0 or SCIM provisioning, are assigned to permission sets that define scoped IAM policies per account, and access accounts through the AWS access portal without long-lived credentials. This control mandates three things.

  1. Identity Center is active with an external IdP connected - the built-in directory is not acceptable for production landing zones.
  2. All central accounts (Management, Log Archive, Audit) have permission set assignments covering at least read-only and administrator tiers with MFA enforced at the Identity Center level.
  3. SCP prevents the creation of IAM users, login profiles, and access keys in member accounts, closing the bypass path that would otherwise allow teams to circumvent Identity Center. Break-glass IAM users in the Management account are the only permitted exception and must be documented under the exceptions section of AWS-IAM-001.

Security Rationale

Long-lived IAM user credentials - passwords and access keys - are the most common credential-based attack vector in AWS. Identity Center eliminates them for human access: sessions are short-lived, MFA is enforced centrally, and access is revoked by removing the IdP group assignment rather than hunting for individual IAM users across dozens of accounts. The audit trail in CloudTrail is attributed to the federated identity rather than a shared IAM user, making incident investigation significantly more precise.

Business & Security Impact

Without centralized identity, orphaned IAM users accumulate across accounts, MFA enforcement is inconsistent, and offboarding requires manual credential revocation per account. A former employee with an active IAM user in a central account represents an undetected persistent threat. The SCP enforcement is disruptive to teams currently using IAM users - a migration plan and communication are required before applying the Deny effect.

Policy Exceptions (2)

Break-glass IAM users in the Management account are permitted as an emergency fallback when Identity Center or the IdP is unavailable. These must have no active access keys, must require MFA, must be documented in AWS-IAM-001, and must be audited monthly.

Service accounts requiring long-lived programmatic credentials (e.g. CI/CD pipelines not yet migrated to OIDC) may retain IAM users with access keys but must not have a login profile enabled. These are exempt from the SCP via the LandingZoneAdminRole carve-out and require documented approval renewed annually.

Operational & Implementation Notes

IAM Identity Center cannot be enabled via AWS CLI - the initial activation requires the Console or a CloudFormation stack set. Subsequent configuration (permission sets, assignments) is fully API-driven. The sso-admin API namespace is used for administration; the identitystore API namespace is used for user and group lookup. Identity Center is a global service deployed to a single home region - all API calls must target that region regardless of where member accounts are located. The SCP carve-outs for LandingZoneAdminRole and BreakGlassRole must reference the exact role names used in your organization; wildcards in ArnNotLike apply to the account segment only (arn:aws:iam::*:role/Name matches any account). Azure AD is now named Microsoft Entra ID - update IdP documentation accordingly.

Compliance Framework Mappings (6)

Regulatory baselines and industry standards mapped to this control specification.

Beta
Framework / StandardMapped Requirements & ControlsControls
CIS AWS Foundations Benchmark v3.0CIS AWS
1.19
1
NIST 800-53 Rev 5NIST 800-53
AC-2IA-2
2
ISO 27001:2022ISO 27001
A.8.2A.8.5
2
PCI DSS v4.0PCI DSS
8.2.1
1
SOC 2SOC 2
CC6.1CC6.3
2
AWS Foundational Security Best PracticesAWS FSBP
IAM.21
1

* Compliance framework mappings are provided for informational architectural reference. Always verify control alignment against your organization's formal audit requirements.

Automated Detection & Rule Logic

Detection Engine: aws-api • Automated: Yes

Detection operates at two levels. First, verify Identity Center is active and an external IdP is configured by checking that the instance exists and that the identity source type is not IDENTITY_STORE (which indicates the built-in directory rather than an external IdP). Second, verify that no IAM users with active login profiles or access keys exist in member accounts - their presence indicates Identity Center is being bypassed. Security Hub control IAM.21 flags accounts where IAM users have active console access alongside active permission set assignments.

Verify Identity Center and Check for IAM User Bypassbash
# Confirm Identity Center instance is active
aws sso-admin list-instances \
  --query "Instances[*].{ARN:InstanceArn,Store:IdentityStoreId,Status:Status}" \
  --output table

# List all IAM users with active login profiles (console bypass indicator)
aws iam list-users --query "Users[*].UserName" --output text | \
  tr '\t' '\n' | while read USER; do
    aws iam get-login-profile --user-name "${USER}" 2>/dev/null && \
      echo "ACTIVE_CONSOLE_USER: ${USER}"
  done

# Check active permission set assignments for a central account
aws sso-admin list-account-assignments \
  --instance-arn "<INSTANCE_ARN>" \
  --account-id "<ACCOUNT_ID>" \
  --permission-set-arn "<PERMISSION_SET_ARN>" \
  --query "AccountAssignments[*].{Principal:PrincipalId,Type:PrincipalType}" \
  --output table

Preventative Enforcement Policies

Deny IAM User and Credential Creationjson
{
  "Statement": [
    {
      "Action": [
        "iam:CreateUser",
        "iam:CreateAccessKey"
      ],
      "Condition": {
        "ArnNotLike": {
          "aws:PrincipalArn": [
            "arn:aws:iam::*:role/LandingZoneAdminRole"
          ]
        }
      },
      "Effect": "Deny",
      "Resource": "*",
      "Sid": "DenyLocalIAMUserAndKeyCreation"
    },
    {
      "Action": [
        "iam:CreateLoginProfile",
        "iam:UpdateLoginProfile"
      ],
      "Effect": "Deny",
      "Resource": "*",
      "Sid": "DenyDirectConsolePasswords"
    }
  ],
  "Version": "2012-10-17"
}

Remediation Guide & Automation

Enable Identity Center in the Management account, connect the corporate IdP, create permission sets for each access tier, and assign them to accounts and groups. Apply the SCP to prevent IAM user creation bypass. Existing IAM users in member accounts must be migrated before the SCP Deny takes effect.

Step-by-Step Instructions

  1. Enable IAM Identity Center in the Management account (one-time, cannot be done via CLI - use the Console or CloudFormation).
  2. Configure the external IdP connection via SAML 2.0 or enable automatic SCIM provisioning.
  3. Create permission sets for each access tier: ReadOnly, PowerUser, Administrator - each with a session duration of 8 hours maximum and MFA required.
  4. Assign permission sets to IdP groups for each central account using account assignments.
  5. Audit and remove existing IAM user login profiles and access keys in member accounts before applying the SCP.
  6. Apply the DenyIAMUserCreationAndCredentials SCP to the organization root or member accounts OU.
Discover Instance, Create Permission Set, Assign to Accountbash
# Get Identity Center instance ARN and identity store ID
aws sso-admin list-instances \
  --query "Instances[0].{InstanceArn:InstanceArn,IdentityStoreId:IdentityStoreId}" \
  --output table

# Create a ReadOnly permission set (8h session, MFA enforced at IdP)
aws sso-admin create-permission-set \
  --instance-arn "<INSTANCE_ARN>" \
  --name "ReadOnly" \
  --description "Read-only access to all services" \
  --session-duration "PT8H"

# Attach AWS managed policy to the permission set
aws sso-admin attach-managed-policy-to-permission-set \
  --instance-arn "<INSTANCE_ARN>" \
  --permission-set-arn "<PERMISSION_SET_ARN>" \
  --managed-policy-arn "arn:aws:iam::aws:policy/ReadOnlyAccess"

# Assign the permission set to a group for a specific account
aws sso-admin create-account-assignment \
  --instance-arn "<INSTANCE_ARN>" \
  --target-id "<ACCOUNT_ID>" \
  --target-type AWS_ACCOUNT \
  --permission-set-arn "<PERMISSION_SET_ARN>" \
  --principal-type GROUP \
  --principal-id "<GROUP_ID>"
Permission Set and Account Assignmenthcl
# ==============================================================================
# 1. IDENTITY CENTER FOUNDATION & MULTI-ACCOUNT ASSIGNMENT
# ==============================================================================
data "aws_ssoadmin_instances" "current" {}

locals {
  instance_arn      = tolist(data.aws_ssoadmin_instances.current.arns)[0]
  identity_store_id = tolist(data.aws_ssoadmin_instances.current.identity_store_ids)[0]
  
  # A list of all member workload account IDs in your landing zone
  target_account_ids = [
    var.log_archive_account_id,
    var.security_tooling_account_id,
    var.workload_prod_account_id
  ]
}

resource "aws_ssoadmin_permission_set" "readonly" {
  name             = "ReadOnly"
  description      = "Read-only access to all services"
  instance_arn     = local.instance_arn
  session_duration = "PT8H"
}

resource "aws_ssoadmin_managed_policy_attachment" "readonly" {
  instance_arn       = local.instance_arn
  permission_set_arn = aws_ssoadmin_permission_set.readonly.arn
  managed_policy_arn = "arn:aws:iam::aws:policy/ReadOnlyAccess"
}

# access mechanisms across ALL landing zone member accounts simultaneously
resource "aws_ssoadmin_account_assignment" "readonly_global" {
  for_each = toset(local.target_account_ids)

  instance_arn       = local.instance_arn
  permission_set_arn = aws_ssoadmin_permission_set.readonly.arn
  target_id          = each.value
  target_type        = "AWS_ACCOUNT"
  principal_type     = "GROUP"
  principal_id       = var.readonly_group_id
}

# ==============================================================================
# 2. THE COMPLIANCE ENFORCEMENT GUARDRAIL (SCP)
# ==============================================================================
resource "aws_organizations_policy" "enforce_sso_only" {
  name        = "Enforce-SSO-Sole-Human-Access"
  description = "Denies direct IAM User creation and standard console credential login loops across member accounts."
  type        = "SERVICE_CONTROL_POLICY"

  content = jsonencode({
    Version = "2012-10-17"
    Statement = [
      {
        Sid      = "DenyLocalIAMUserAndKeyCreation"
        Effect   = "Deny"
        Action   = [
          "iam:CreateUser",
          "iam:CreateAccessKey"
        ]
        Resource = "*"
        # Exception: Allow your central administrative pipeline role to push breaks or service accounts if required
        Condition = {
          ArnNotLike = {
            "aws:PrincipalArn" = [
              "arn:aws:iam::*:role/LandingZoneAdminRole"
            ]
          }
        }
      },
      {
        Sid      = "DenyDirectConsolePasswords"
        Effect   = "Deny"
        Action   = [
          "iam:CreateLoginProfile",
          "iam:UpdateLoginProfile"
        ]
        Resource = "*"
      }
    ]
  })
}

# Attach the policy block directly to your Organization Root or Core OUs
resource "aws_organizations_policy_attachment" "guardrail_attachment" {
  policy_id = aws_organizations_policy.enforce_sso_only.id
  target_id = var.organization_root_ou_id
}

We value your privacy

We use analytics cookies to understand how visitors interact with our site and to improve the user experience. You can choose to accept or decline these cookies.