Quick overview
This workflow receives a new-hire webhook, checks the hire’s personal email in RelayShield for breach and infostealer exposure, provisions a Google Workspace account via the Admin SDK, and logs both the risk check and provisioning outcomes to Notion with Slack notifications for flagged identities or provisioning failures.
How it works
- Receives an HTTP POST webhook from your HR system with the new hire’s details (including personal email, corporate email, org unit path, and a temporary password).
- Checks the new hire’s personal email in RelayShield for known credential breaches and infostealer log exposure.
- If any prior exposure is found, logs a flagged event to a Notion onboarding database and posts an awareness alert to a Slack channel.
- If no exposure is found, logs a clean identity-check result to the same Notion database.
- In parallel, creates the new hire’s Google Workspace user account using the Google Admin SDK (via HTTP) and forces a password change at next login.
- If provisioning succeeds, logs the success to Notion and posts a confirmation message to Slack.
- If provisioning fails, logs the failure to Notion and posts an urgent Slack alert for manual follow-up.
Setup
- Create and configure your HR system’s new-hire webhook to POST to this workflow’s webhook URL with the expected fields (personal_email, corporate_email, name, department, manager_email, job_title, org_unit_path, temp_password).
- Add RelayShield API credentials for the breach and infostealer checks.
- Connect Notion OAuth2 credentials, create a Notion database for onboarding/audit logs, and set the n8n variable notionOnboardingDbId.
- Connect Slack credentials and set the n8n variable slackSecurityChannelId to the target channel for security/IT notifications.
- Create a Google Workspace Admin SDK domain-wide delegated service account credential (scope: https://www.googleapis.com/auth/admin.directory.user) and ensure org_unit_path values match your Google Workspace org structure.