turbot/aws_insights

Query: iam_users_for_group

Usage

powerpipe query aws_insights.query.iam_users_for_group

Steampipe Tables

SQL

select
u ->> 'UserName' as "User Name",
u ->> 'Arn' as "User ARN",
u ->> 'UserId' as "User ID"
from
aws_iam_group as g,
jsonb_array_elements(users) as u
where
arn = $1
and account_id = split_part($1, ':', 5);

Dashboards

The query is used in the dashboards: