turbot/gitlab_insights

Query: group_expiring_member_table

Usage

powerpipe query gitlab_insights.query.group_expiring_member_table

SQL

select
g.full_path as "Group",
m.username as "Member",
m.access_desc as "Access Level",
m.expires_at::date - now()::date as "Expires in Days",
g.web_url,
m.web_url as member_url
from
gitlab_group g
join gitlab_group_member m on g.id = m.group_id
where
m.state = 'active'
and m.expires_at is not null
order by
"Expires in Days";

Dashboards

The query is used in the dashboards: