Check offboarding credential risks with RelayShield, Slack, Notion and Gmail
Quick overview This workflow receives offboarding events via webhook, checks the departing employee’s email in RelayShield for breach, infostealer, and OAuth exposure signals, then logs the outcome to Notion and, when risk is detected, alerts the security team in Slack and emails the employee’s manager via Gmail.
How it works Receives an HTTP POST webhook from your HR system with the offboarded employee’s details (email, name, department, and manager email). Queries RelayShield for credential breach history, infostealer log matches, and OAuth watchlist exposure for the employee’s email address. Evaluates whether any of the RelayShield checks indicates risk (breaches found, infostealer detected, or OAuth exposure matched). If risk is found, creates a risk-flag entry in a Notion database with the findings and a “Pending Review” status. If risk is found, posts a structured alert with recommended actions to a designated Slack security channel. If risk is found, sends an HTML email to the employee’s manager via Gmail summarizing the findings and next steps. If no risk is found, creates a “Clean — No Action Required” entry in the same Notion database for auditability.
Setup Create and add RelayShield API credentials in n8n. Add Notion OAuth credentials, create an offboarding risk log database, and set $vars.notionOffboardingDbId to its database ID. Add Slack credentials (bot token), choose a security channel, and set $vars.slackSecurityChannelId to that channel ID. Add Gmail OAuth2 credentials for the account that should send manager notifications. Copy the production webhook URL for the “employee-offboard” endpoint and configure your HR system to POST the expected payload to it.
Related Templates
AI Email Classifier & Auto-Delete for Gmail (SPAM/OFFER Cleaner)
This workflow is designed for freelancers, solopreneurs, and business owners who receive a high volume of irrelevant mes...
Generate Product Ad Copy & CTAs with GPT-4 for Slack and Airtable
⚡ AI Copywriter Pro: Instant Ad Copy & CTA Generator Transform product details into compelling marketing copy in second...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments