aws-account-can-leave-org
match (effective permission)
{
"action": "organizations:LeaveOrganization",
"resource_type": "AWS::Organizations::Account"
}
emit
| source type | Identity |
|---|---|
| target type | * |
| source | <principal> |
| target | <Account node (member, self)> |
| permissions | organizations:LeaveOrganization |
Narrative
{principal.name} can make {account.name} leave its organization (organizations:LeaveOrganization).
Raw rule rules/explicit/aws-account.yaml
id: aws-account-can-leave-org
emits: HasPermission
applies_to:
- aws
match_effective_permission:
action: organizations:LeaveOrganization
resource_type: AWS::Organizations::Account
emit:
source_type: Identity
target_type: '*'
source: <principal>
target: <Account node (member, self)>
api_source: iam:SimulatePrincipalPolicy | policy evaluation
permissions:
- organizations:LeaveOrganization
narrative: '{principal.name} can make {account.name} leave its organization (organizations:LeaveOrganization).'