Skip to contents

List policy entities

Usage

aws_policy_list_entities(name, ...)

Arguments

name

(character) a policy name. required. within the function we lookup the policy arn which is what's passed to the AWS API

...

additional named arguments passed on to internal paws method (see link below to its docs)

Value

tibble with columns:

  • type: one of Users, Roles, Groups

  • name: the user, role or group name

  • id: the id for the user, role or group name

Zero row tibble if there are no entities

Examples

if (FALSE) { # interactive()
pols <- aws_policies(Scope = "Local")
for (policy in pols$PolicyName) {
  cat("\n\n", policy, "\n")
  print(aws_policy_list_entities(policy))
}
aws_policy_list_entities("S3ReadOnlyAccessS64Test22")
}