# Inline policy

Glossary term, read 10 Nov 2026

**In short.** An inline policy is a policy embedded in a single IAM user, group or role, with a strict one-to-one relationship to that identity. It is deleted when the identity is deleted. Because each copy is separate, inline policies drift apart and are harder to review at scale than shared policies.

## An example, sourced

AWS's documentation says an inline policy is a policy created for a single IAM identity, a user, user group or role, that maintains a strict one-to-one relationship between the policy and the identity, and is deleted when the identity is deleted. It adds that if a policy could apply to more than one entity, it is better to use a managed policy. AWS's diagram shows two roles that include the same policy, each with its own copy.

## Why it matters here

Inline policies hide excess from tools that scan managed policies only. When a vendor claims coverage, ask whether it reads inline policies and whether it can change them. Record how many inline policies exist, because each one has to be changed on its own.

## Sources

- https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_managed-vs-inline.html (read 10 Nov 2026)

Last reviewed 10 Nov 2026. Canonical: https://cloudleastprivilege.com/glossary/inline-policy/
