Retrieval of Inline Policies for User Principals
The enumeration of user principal inline policies begins with the fundamental action iam:ListUserPolicies
. This call enumerates the set of policy names explicitly attached to a given user principal. Because inline policies are scoped to that specific user identity, they are frequently overlooked in large environments where common permissions are often handled through managed policies. However, inline policies can grant powerful privileges and might be used in exceptional cases that deviate from standard best practices.
Once the set of inline policy names is acquired through iam:ListUserPolicies
, the next step involves invoking iam:GetUserPolicy
. This latter operation retrieves the actual policy document associated with each policy name enumerated. Through this two-action chain, SkyEye gain direct visibility into the textual policy statements. By structuring the retrieval process in discrete steps, SkyEye can automate the enumeration and analysis of user-specific policies that may impose excessive or contradictory permissions, and ensure the complete IAM vision across the permissions from user-specific inline policy scope.
Last updated