turbot/aws_compliance

Query: iam_user_in_group

Usage

powerpipe query aws_compliance.query.iam_user_in_group

Steampipe Tables

SQL

select
arn as resource,
case
when jsonb_array_length(groups) = 0 then 'alarm'
else 'ok'
end as status,
case
when jsonb_array_length(groups) = 0 then title || ' not associated with any IAM group.'
else title || ' associated with IAM group.'
end as reason
, account_id
from
aws_iam_user;

Controls

The query is being used by the following controls: