turbot/steampipe-mod-oci-insights

Dashboard: OCI Identity User Dashboard

This dashboard answers the following questions:

  • How many users are in each tenancy and group?
  • How many users are not attached to a group?
  • How many users have MFA disabled?
  • How many users have pending email address verification?
This dashboard contains 3 cards.

Usage

Install the mod:

mkdir dashboards
cd dashboards
powerpipe mod init
powerpipe mod install github.com/turbot/steampipe-mod-oci-insights

Start the Powerpipe server:

steampipe service start
powerpipe server

Open http://localhost:9033 in your browser and select OCI Identity User Dashboard dashboard.

You could also snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe dashboard run oci_insights.dashboard.identity_user_dashboard --share

Queries

This dashboard uses the the following queries:
with users_and_grp as (
select
oci_identity_user.name as user_name,
oci_identity_group.name as group_name,
user_group ->> 'groupId' as group_id
from
oci_identity_user,
jsonb_array_elements(user_groups) as user_group
inner join oci_identity_group ON (oci_identity_group.id = user_group ->> 'groupId' )
)
select
group_name as "Group Name",
count(user_name) as "Users"
from
users_and_grp
group by
group_name
order by
group_name;

Tags