# Deny member accounts leaving the organization

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

Deny member accounts leaving the organization is an AWS guardrail written in service control policies. Denies organizations:LeaveOrganization so users and roles in affected member accounts cannot remove their account from the AWS organization. Copied from a licensed open source set and read on 10 Nov 2026.

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Deny",
      "Action": [
        "organizations:LeaveOrganization"
      ],
      "Resource": "*"
    }
  ]
}
```

- **Blocks:** Denies organizations:LeaveOrganization so users and roles in affected member accounts cannot remove their account from the AWS organization.
- **Breaks:** The policy has no exception condition, so it applies to every IAM user, role and the root user in the affected member accounts; AWS documents that SCPs do not affect the management account. ([source](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps.html))
- **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-member-accounts-from-leaving-your-AWS-organization.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 1 action or pattern: `organizations:LeaveOrganization`.

## What the source says

`organizations:LeaveOrganization` (read 10 Nov 2026).

What it breaks is documented for every guardrail of this mechanism: see [Service control policies](/mechanisms/scp/).

## Related guardrails

- [Do not allow deletion of resource types](/guardrails/azure-policy-deny-action-delete/): Azure, Azure Policy (built-in definitions), organization integrity
- [Deployment stack deny settings (Azure RBAC deny assignment)](/guardrails/azure-deny-assignment-deployment-stack/): Azure, Azure RBAC deny assignments (created by deployment stacks), organization integrity
- [Resource locks (CanNotDelete and ReadOnly)](/guardrails/azure-lock-cannotdelete-readonly/): Azure, Azure resource locks, organization integrity
- [Deny billing, tax and account contact changes](/guardrails/aws-scp-deny-billing-and-contact-changes/): AWS, Service control policies (SCPs), organization integrity
- [Restrict access to resources in a suspended OU](/guardrails/aws-rcp-restrict-suspended-ou-resources/): AWS, Resource control policies (RCPs), organization integrity

## Related pages

- [Prevent root credentials management in member accounts (AWS Service control policies)](/guardrails/aws-scp-deny-member-root-credentials/)
- [Deny the root user except for S3 bucket policy changes (AWS Service control policies)](/guardrails/aws-scp-deny-root-except-s3-bucket-policy/)
- [Deny critical IAM user actions (AWS Service control policies)](/guardrails/aws-scp-deny-critical-iam-user-actions/)

## Sources

- Deny member accounts leaving the organization: https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Privileged-access-controls/Deny-member-accounts-from-leaving-your-AWS-organization.json (read 10 Nov 2026)
- What it breaks: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps.html (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-leave-org/
