-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Madhushree Ray <[email protected]>
- Loading branch information
1 parent
68dd6d6
commit bc9cdaa
Showing
13 changed files
with
1,045 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Release Steampipe Anywhere Components | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
|
||
jobs: | ||
anywhere_publish_workflow: | ||
uses: turbot/steampipe-workflows/.github/workflows/steampipe-anywhere.yml@main | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,32 @@ | ||
# Table: googledirectory_group | ||
--- | ||
title: "Steampipe Table: googledirectory_group - Query Google Directory Groups using SQL" | ||
description: "Allows users to query Google Directory Groups, specifically the group details and members, providing insights into the structure and membership of groups within the Google Workspace." | ||
--- | ||
|
||
Query information about groups defined in the Google Workspace directory. | ||
# Table: googledirectory_group - Query Google Directory Groups using SQL | ||
|
||
Google Directory is a service within Google Workspace that allows you to manage, create, and view groups and their members. It provides a centralized way to set up and manage groups for various Google Workspace resources, including users, emails, and more. Google Directory helps you stay informed about the organization and membership of your Google Workspace resources. | ||
|
||
## Table Usage Guide | ||
|
||
The `googledirectory_group` table provides insights into groups within Google Workspace. As a system administrator, explore group-specific details through this table, including group names, emails, and associated metadata. Utilize it to uncover information about groups, such as those with certain members, the hierarchy of groups, and the verification of group properties. | ||
|
||
## Examples | ||
|
||
### Basic info | ||
Explore the basic information of Google Directory groups to gain insights into group names, IDs, associated emails, and creation details. This can be useful for managing and auditing group settings and memberships. | ||
|
||
```sql | ||
```sql+postgres | ||
select | ||
name, | ||
id, | ||
email, | ||
admin_created | ||
from | ||
googledirectory_group; | ||
``` | ||
|
||
```sql+sqlite | ||
select | ||
name, | ||
id, | ||
|
@@ -17,8 +37,21 @@ from | |
``` | ||
|
||
### Get group by ID | ||
Discover the details of a specific group in your Google Directory by using its unique ID. This can be useful for gaining insights into group information such as its name, email, and administrative creation data. | ||
|
||
```sql | ||
```sql+postgres | ||
select | ||
name, | ||
id, | ||
email, | ||
admin_created | ||
from | ||
googledirectory_group | ||
where | ||
id = '02ce457p6conzyd'; | ||
``` | ||
|
||
```sql+sqlite | ||
select | ||
name, | ||
id, | ||
|
@@ -31,8 +64,21 @@ where | |
``` | ||
|
||
### Get group by email | ||
Determine the areas in which a specific email address is associated with a group, allowing you to understand the context and scope of that group's administration. This can be particularly useful for managing and auditing access permissions in a large organization. | ||
|
||
```sql+postgres | ||
select | ||
name, | ||
id, | ||
email, | ||
admin_created | ||
from | ||
googledirectory_group | ||
where | ||
email = '[email protected]'; | ||
``` | ||
|
||
```sql | ||
```sql+sqlite | ||
select | ||
name, | ||
id, | ||
|
@@ -45,8 +91,20 @@ where | |
``` | ||
|
||
### List top 5 groups by member count | ||
Explore the five most populated groups within your Google Directory. This could be useful for understanding which groups are most active or require the most resources. | ||
|
||
```sql | ||
```sql+postgres | ||
select | ||
name, | ||
direct_members_count | ||
from | ||
googledirectory_group | ||
order by | ||
direct_members_count desc | ||
limit 5; | ||
``` | ||
|
||
```sql+sqlite | ||
select | ||
name, | ||
direct_members_count | ||
|
@@ -58,8 +116,9 @@ limit 5; | |
``` | ||
|
||
### List all groups and their members | ||
Explore which members belong to specific groups within your Google Directory. This allows you to assess the composition of each group, aiding in tasks like group management and access control. | ||
|
||
```sql | ||
```sql+postgres | ||
select | ||
g.id as group_id, | ||
g.name as group_name, | ||
|
@@ -74,9 +133,26 @@ order by | |
m.email; | ||
``` | ||
|
||
```sql+sqlite | ||
select | ||
g.id as group_id, | ||
g.name as group_name, | ||
m.email as member_email | ||
from | ||
googledirectory_group as g | ||
join | ||
googledirectory_group_member as m | ||
on | ||
g.id = m.group_id | ||
order by | ||
g.name, | ||
m.email; | ||
``` | ||
|
||
### List groups using the [query filter](https://developers.google.com/admin-sdk/directory/v1/guides/search-groups) | ||
Explore which groups have been created by admins within the Google Directory, specifically focusing on those associated with an email containing 'steampipe'. This can be beneficial in understanding the extent of 'steampipe' usage across different groups. | ||
|
||
```sql | ||
```sql+postgres | ||
select | ||
name, | ||
id, | ||
|
@@ -87,3 +163,15 @@ from | |
where | ||
query = 'email:steampipe*'; | ||
``` | ||
|
||
```sql+sqlite | ||
select | ||
name, | ||
id, | ||
email, | ||
admin_created | ||
from | ||
googledirectory_group | ||
where | ||
query = 'email:steampipe*'; | ||
``` |
Oops, something went wrong.