Table: github_team_member - Query GitHub Team Members using SQL
GitHub Team Members are part of GitHub's Team feature which allows users to organize and manage user groups within a repository. These Team Members can be assigned different roles and permissions within the team. This feature is part of GitHub's collaboration tools designed to facilitate project management and team coordination.
Table Usage Guide
The github_team_member
table provides insights into team members within GitHub. As a project manager or team lead, explore team member-specific details through this table, including their roles and permissions within teams. Utilize it to manage and coordinate your team effectively, ensuring that each team member has the appropriate permissions and roles for their tasks.
Important Notes
- You must specify the
organization
andslug
columns in thewhere
orjoin
clause to query the table.
Examples
List team members for a specific team
Explore which team members belong to a specific team in your organization. This is useful for understanding team composition and roles within your organization.
select organization, slug as team_slug, login, role, statusfrom github_team_memberwhere organization = 'my_org' and slug = 'my-team';
select organization, slug as team_slug, login, role, statusfrom github_team_memberwhere organization = 'my_org' and slug = 'my-team';
List active team members with maintainer role for a specific team
This query helps to identify active team members who hold the 'Maintainer' role within a specific team in your organization. It is useful for managing team roles and ensuring that every team has an active maintainer.
select organization, slug as team_slug, login, role, statusfrom github_team_memberwhere organization = 'my_org' and slug = 'my-team' and role = 'MAINTAINER';
select organization, slug as team_slug, login, role, statusfrom github_team_memberwhere organization = 'my_org' and slug = 'my-team' and role = 'MAINTAINER';
List team members with maintainer role for visible teams
Discover the segments that consist of team members with a maintainer role in visible teams. This can be useful for understanding the distribution of roles within your organization's teams, particularly in identifying those who have the authority to manage team settings.
select t.organization as organization, t.name as team_name, t.slug as team_slug, t.privacy as team_privacy, t.description as team_description, tm.login as member_login, tm.role as member_role, tm.status as member_statusfrom github_team as t, github_team_member as tmwhere t.organization = tm.organization and t.slug = tm.slug and tm.role = 'MAINTAINER';
select t.organization as organization, t.name as team_name, t.slug as team_slug, t.privacy as team_privacy, t.description as team_description, tm.login as member_login, tm.role as member_role, tm.status as member_statusfrom github_team as t join github_team_member as tm on t.organization = tm.organization and t.slug = tm.slugwhere tm.role = 'MAINTAINER';
Schema for github_team_member
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
any_pinnable_items | boolean | If true, user has pinnable items. | |
avatar_url | text | The URL of the user's avatar. | |
bio | text | The biography of the user. | |
can_changed_pinned_items | boolean | If true, you can change the pinned items for this user. | |
can_create_projects | boolean | If true, you can create projects for this user. | |
can_follow | boolean | If true, you can follow this user. | |
can_sponsor | boolean | If true, you can sponsor this user. | |
company | text | The company on the users profile. | |
created_at | timestamp with time zone | Timestamp when user was created. | |
text | The email of the user. | ||
estimated_next_sponsors_payout_in_cents | bigint | The estimated next GitHub sponsors payout for this user in cents (USD). | |
has_sponsors_listing | boolean | If true, user has a GitHub sponsors listing. | |
id | bigint | The ID of the user. | |
interaction_ability | jsonb | The interaction ability settings for this user. | |
is_bounty_hunter | boolean | If true, user is a participant in the GitHub security bug bounty. | |
is_campus_expert | boolean | If true, user is a participant in the GitHub campus experts program. | |
is_developer_program_member | boolean | If true, user is a GitHub developer program member. | |
is_employee | boolean | If true, user is a GitHub employee. | |
is_following | boolean | If true, you are following this user. | |
is_following_you | boolean | If true, user follows you. | |
is_github_star | boolean | If true, user is a member of the GitHub Stars Program. | |
is_hireable | boolean | If true, user has marked themselves as for hire. | |
is_site_admin | boolean | If true, user is a site administrator. | |
is_sponsoring | boolean | If true, you are sponsoring this user. | |
is_sponsoring_you | boolean | If true, this user is sponsoring you. | |
is_you | boolean | If true, user is you. | |
location | text | The location of the user. | |
login | text | The login name of the user. | |
login_id | text | =, !=, ~~, ~~*, !~~, !~~* | Unique identifier for the user login. |
monthly_estimated_sponsors_income_in_cents | bigint | The estimated monthly GitHub sponsors income for this user in cents (USD). | |
name | text | The name of the user. | |
node_id | text | The node ID of the user. | |
organization | text | = | The organization the team is associated with. |
pinned_items_remaining | bigint | How many more items this user can pin to their profile. | |
projects_url | text | The URL listing user's projects. | |
pronouns | text | The user's pronouns. | |
role | text | = | The team member's role (MEMBER, MAINTAINER). |
slug | text | = | The team slug name. |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
sponsors_listing | jsonb | The GitHub sponsors listing for this user. | |
status | jsonb | The user's status. | |
twitter_username | text | Twitter username of the user. | |
updated_at | timestamp with time zone | Timestamp when user was last updated. | |
url | text | The URL of the user's GitHub page. | |
website_url | text | The URL pointing to the user's public website/blog. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- github
You can pass the configuration to the command with the --config
argument:
steampipe_export_github --config '<your_config>' github_team_member