Skip to content

Slack, Teams, e-mail and webhooks

Notifications tell your team when something AuditGraph observed needs attention. They are sent after each publication: AuditGraph compares one publication with the previous one, so how quickly you are notified depends on your scan schedule. For alerts within minutes, see Detection alerts.

Type
Destination (notifications)
Who
An Admin, under Administration › Integrations
Plans
All plans, including the evaluation
Channels
Slack (incoming webhook), Microsoft Teams (Workflows or incoming webhook), e-mail, signed webhook to your HTTPS endpoint
What is sent
Counts, rule IDs, titles and links into AuditGraph. Never a secret, and never a raw provider document.
Event Sent when
finding.critical_new — New critical finding A publication contains a critical finding that was not there before
tier0.change — Tier-0 access changed Access to your most privileged (Tier-0) roles changed
scan.failed — Scan failed A discovery did not complete
credential.expiring — Credential expiring A secret or certificate of an app registration or service principal expires within 30 days
publication.summary — Publication summary Every publication: a short summary of what changed
detection.alert — Detection alert (real time: created, recurred, state changed) A detection alert is raised, recurs or changes state. On by default for new integrations; delivered on plans with real-time detection.
detection.summary — Detection summary (daily: new alerts since the previous summary) Once a day, the new detection alerts since the previous summary. Opt-in.

Identity change alerts. A channel can also send one alert per identity change. By default these are Privileged role assigned, Privileged role removed and Account disabled. You can add:

  • Account re-enabled
  • New identity with access
  • Guest with new privileged access
  • New credential on a privileged identity
  • New credential on an identity
  • New federated credential (workload federation)
  • AI app connected
  • New federated domain
  • Federated domain configuration changed
  • Cross-tenant partner added, changed or removed

Under Which role changes, choose Privileged changes only (the default) or All role changes. Change alerts are capped per publication, with a summary for the rest. They show what changed, not who changed it (that needs the directory audit log).

Weekly digest. A weekly digest can also be turned on for each channel.

  1. Add an integration and choose the channel.

    Go to Administration › Integrations › + Add integration, and choose the channel.

  2. Enter the channel’s details.

    1. In Slack, create an incoming webhook for the channel (a Slack app with Incoming Webhooks turned on).
    2. Paste the Slack incoming-webhook URL (https://hooks.slack.com/services/…) into AuditGraph.

    Only hooks.slack.com URLs are accepted.

  3. Name the integration, choose its events, and save.

    Give it a Display name, choose its Events, and save.

    To change the events of an existing integration later, open it, change the ticks and select Save events. Until you save, it says Unsaved changes — not applied until you save.

    Result: the URL, the signing secret and every other credential are stored in a key vault. Afterwards only the URL’s host is shown. You can replace it, but not read it back.

Compute the HMAC-SHA-256 of "<t>.<raw request body>" with your signing secret. Compare it with v1 in constant time, and reject requests whose timestamp is more than 5 minutes from your clock. Always use the raw body bytes, before any JSON parsing.

import hashlib
import hmac
import time
TOLERANCE_SECONDS = 300 # reject anything older or newer than 5 minutes
def verify_auditgraph_signature(secret: str, header: str, raw_body: bytes) -> bool:
"""Return True if X-AuditGraph-Signature is valid for this body."""
try:
parts = dict(item.split("=", 1) for item in header.split(","))
timestamp = int(parts["t"])
received = parts["v1"]
except (KeyError, ValueError):
return False
if abs(time.time() - timestamp) > TOLERANCE_SECONDS:
return False
expected = hmac.new(
secret.encode(), f"{timestamp}.".encode() + raw_body, hashlib.sha256
).hexdigest()
return hmac.compare_digest(expected, received)

Example body:

{
"specversion": "1.0",
"id": "5f0c2d1e-…",
"source": "https://<your AuditGraph host>/orgs/<org id>",
"type": "finding.critical_new",
"time": "2026-11-19T10:15:00+00:00",
"datacontenttype": "application/json",
"subject": "<directory>",
"data": { "…": "…" }
}
Check Where Expected result
Send a test Administration › Integrations › the channel › Test Test queued. The result appears in the delivery log. A test message arrives in the channel, inbox or endpoint.
Delivery log The channel’s Deliveries Each delivery with its attempts and HTTP status.
Signature Your receiver verify_auditgraph_signature returns True for the test request.

Retries. Deliveries are retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 6 hours when your endpoint answers 408, 429 or 5xx, or cannot be reached. Any other answer, or the end of the schedule, marks the delivery as failed.

Symptom Cause Fix
URL refused when saving The host is not a Slack or Teams webhook host, or the endpoint is not HTTPS. Use the webhook URL that Slack or Teams generated, or an HTTPS endpoint.
Test failed with 401 or 403 from your endpoint Your receiver rejected the signature. Verify against the raw body, and check that you stored the latest signing secret.
No recipients An e-mail channel without addresses. Add at least one recipient.
Nothing arrives after a scan No subscribed event happened, or the scan has not been published yet. Turn on publication.summary to get a message after every publication.
  1. Delete the integration in AuditGraph.

    Delete it in Administration › Integrations. Deliveries stop, and its stored secrets (the URL and signing secret) are deleted from the key vault.

  2. Remove the webhook or flow in Slack or Teams.