# Deny critical IAM user actions

Facts read 10 Nov 2026. Page reviewed 16 Nov 2026.

Deny critical IAM user actions is an AWS guardrail written in service control policies. Denies creating IAM users, access keys, login profiles and service-specific credentials, and changing the account password policy, unless the caller is a privileged role or carries the IAMUserManagementException tag set to true.

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Deny",
      "Action": [
        "iam:CreateAccessKey",
        "iam:CreateUser",
        "iam:UpdateLoginProfile",
        "iam:CreateLoginProfile",
        "iam:DeleteLoginProfile",
        "iam:UpdateAccountPasswordPolicy",
        "iam:DeleteAccountPasswordPolicy",
        "iam:CreateServiceSpecificCredential"
      ],
      "Resource": "*",
      "Condition": {
        "ArnNotLike": {
          "aws:PrincipalArn": "arn:aws:iam::*:role/[PRIVILEGED_ROLE]"
        },
        "StringNotLike": {
          "aws:PrincipalTag/IAMUserManagementException": "true"
        }
      }
    }
  ]
}
```

- **Blocks:** Denies creating IAM users, access keys, login profiles and service-specific credentials, and changing the account password policy, unless the caller is a privileged role or carries the IAMUserManagementException tag set to true.
- **Breaks:** Anyone outside the named privileged role or tag exception cannot create or rotate IAM user credentials, and the placeholder [PRIVILEGED_ROLE] must be replaced before use. ([source](https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Privileged-access-controls/README.md))
- **Test before applying:** As for every Service control policies guardrail: [how to test before enforcing](/mechanisms/scp/)
- **Mechanism:** [Service control policies (SCPs)](/mechanisms/scp/): IAM users, IAM roles and the root user in member accounts; not the management account and not service-linked roles.
- **Taken from:** [open source set](https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Privileged-access-controls/Deny-critical-IAM-user-actions.json), MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE

## What the policy text names

It names 8 actions or patterns: `iam:CreateAccessKey`, `iam:CreateUser`, `iam:UpdateLoginProfile`, `iam:CreateLoginProfile`, `iam:DeleteLoginProfile`, `iam:UpdateAccountPasswordPolicy`, `iam:DeleteAccountPasswordPolicy`, `iam:CreateServiceSpecificCredential`. Its conditions test `aws:PrincipalArn`, `aws:PrincipalTag/IAMUserManagementException`.

## What the source says

`iam:CreateAccessKey` (read 10 Nov 2026).

On what it breaks: "Restrict creation and modification of IAM user profiles, IAM user access keys, service specific credentials such as Amazon Bedrock API keys and account password policy to a privileged role, or principal with the `IAMUserManagementException` Principal tag set to a value of `true`."

## Related guardrails

- [Storage accounts should prevent shared key access](/guardrails/azure-policy-storage-no-shared-key/): Azure, Azure Policy (built-in definitions), identity and privilege
- [Azure Key Vault should use the RBAC permission model](/guardrails/azure-policy-keyvault-use-rbac/): Azure, Azure Policy (built-in definitions), identity and privilege
- [Azure SQL Database should have Microsoft Entra-only authentication enabled](/guardrails/azure-policy-sql-entra-only/): Azure, Azure Policy (built-in definitions), identity and privilege
- [Prevent root credentials management in member accounts](/guardrails/aws-scp-deny-member-root-credentials/): AWS, Service control policies (SCPs), identity and privilege
- [Deny the root user except for S3 bucket policy changes](/guardrails/aws-scp-deny-root-except-s3-bucket-policy/): AWS, Service control policies (SCPs), identity and privilege
- [Deny creating or changing IAM federation providers](/guardrails/aws-scp-deny-iam-federation-changes/): AWS, Service control policies (SCPs), identity and privilege

## Related pages

- [Deny creating or changing IAM federation providers (AWS Service control policies)](/guardrails/aws-scp-deny-iam-federation-changes/)
- [Prevent creating or expanding public connectivity for VPCs (AWS Service control policies)](/guardrails/aws-scp-prevent-vpc-public-connectivity/)
- [Deny billing, tax and account contact changes (AWS Service control policies)](/guardrails/aws-scp-deny-billing-and-contact-changes/)

## Sources

- Deny critical IAM user actions: https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Privileged-access-controls/Deny-critical-IAM-user-actions.json (read 10 Nov 2026)
- What it breaks: https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Privileged-access-controls/README.md (read 10 Nov 2026)
- How to test it first: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_testing-policies.html (read 10 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://cloudgovernancetools.com/guardrails/aws-scp-deny-critical-iam-user-actions/
