Log Google Workspace admin events to Snowflake

Directory ServicesCloud PlatformDatabaseMarketingProductivitySales Enablement

What it does

When someone is added to an important Google Workspace group, this automation retrieves details about that person and group. It records the addition in Snowflake and sends a Gmail notification to the super admin.

Who it's for

IT teams who need to track admin group membership changes in a central audit log.

How teams use this

Audit admin group membership changes

Track every person added to the IT admin group by logging each addition to Snowflake with full member and group details. The super admin gets notified each time so nothing goes unnoticed.

Monitor multiple sensitive groups

Extend this automation to watch other important Google Workspace groups like Finance or Security by filtering the trigger to include more group email addresses.

Route notifications to group owners

Send the Gmail notification to the group owner instead of a single super admin so each team lead knows when their group membership changes.

Include removal events in the audit log

Add a condition to also log when people are removed from admin groups, so the Snowflake table captures both additions and removals for complete audit coverage.

How it works

  1. Detect new admin group member. This automation starts when someone is added to a Google Workspace group with a specific group email address, such as the IT admin group.
  2. Fetch the group details. Retrieve the full details of the Google Workspace group from the event so the record includes group information.
  3. Fetch the member details. Retrieve the full details of the person who was added to the group so their information is captured in the audit log.
  4. Record the group addition. Insert a row into the GOOGLE_GROUPS table in Snowflake with the member and group details to create an audit trail.
  5. Notify the super admin. Send an email via Gmail to the super admin with the details of who was added to which group and when.