Directory User Deleted

Triggered when an active user is deactivated or deleted in the directory provider. The data object carries the last known user record; active is false when the user was deactivated.

postWebhookorganization.directory.user_deleted

Payload

spec_versionstring required

The webhook specification version

idstring required

Unique identifier for the webhook event (must be prefixed with "evt_")

type'organization.directory.user_deleted' required

The event type

occurred_atstring date-time required

When the event occurred (ISO 8601 format)

environment_idstring required

The environment ID where the event occurred

organization_idstring

The organization ID (if applicable)

object'DirectoryUser' required

The type of object that triggered the webhook

Example payload

{
  "spec_version": "1",
  "type": "organization.directory.user_deleted",
  "object": "DirectoryUser",
  "data": {
    "id": "diruser_53891546960887884",
    "organization_id": "org_53879494091473415",
    "active": true,
    "preferred_username": "john.doe@acmecorp.com",
    "dp_id": "00u1a2b3c4d5e6f7g8h9",
    "email": "john.doe@acmecorp.com",
    "groups": [
      {
        "id": "dirgroup_53891546960887900",
        "name": "Engineering"
      }
    ],
    "name": "John Doe",
    "given_name": "John",
    "family_name": "Doe",
    "nickname": "Johnny",
    "picture": "https://example.com/john.jpg",
    "phone_number": "+1-555-0100",
    "locale": "en-US",
    "zoneinfo": "America/New_York",
    "language": "en",
    "title": "Software Engineer",
    "user_type": "Employee",
    "employee_id": "E1234",
    "department": "Engineering",
    "roles": [
      {
        "role_name": "billing_admin"
      }
    ]
  }
}

Response

Webhook received successfully

Changes

Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.