organizations:DetachPolicy

Write

organizations:DetachPolicy is a Write access-level action in the organizations service. Grants permission to detach a policy from a target root, organizational unit, or account

Resource types

ARNs that organizations:DetachPolicy can be scoped to in an IAM policy.

arn:${Partition}:organizations::${Account}:policy/o-${OrganizationId}/${PolicyType}/p-${PolicyId}
policy
arn:${Partition}:organizations::${Account}:account/o-${OrganizationId}/${AccountId}
account
arn:${Partition}:organizations::${Account}:ou/o-${OrganizationId}/ou-${OrganizationalUnitId}
organizationalunit
arn:${Partition}:organizations::${Account}:root/o-${OrganizationId}/r-${RootId}
root

Condition keys

Keys you can use in the Condition block of a policy that grants organizations:DetachPolicy.

aws:ResourceTag/${TagKey} String

Filters access by the tags associated with the resource

Example IAM policy

A minimal policy that allows organizations:DetachPolicy. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowOrganizationsDetachPolicy",
      "Effect": "Allow",
      "Action": "organizations:DetachPolicy",
      "Resource": "*"
    }
  ]
}

Related actions in organizations

View all organizations actions →