---
title: "Directory User Deleted"
method: POST
path: "organization.directory.user_deleted"
---

# Directory User Deleted

`POST organization.directory.user_deleted` (webhook)

Triggered when a directory user is deleted

## Payload

- DirectoryUserDeletedEvent — Payload delivered for the organization.directory.user_deleted webhook event.
  - `spec_version` string, required — The webhook specification version
  - `id` string, required — Unique identifier for the webhook event (must be prefixed with "evt_")
  - `type` 'organization.directory.user_deleted', required — The event type
  - `occurred_at` string, date-time, required — When the event occurred (ISO 8601 format)
  - `environment_id` string, required — The environment ID where the event occurred
  - `organization_id` string — The organization ID (if applicable)
  - `object` 'DirectoryUser', required — The type of object that triggered the webhook
  - `data` DirectoryUserEventData, required — Directory user payload for organization.directory.user_* webhook events.
    - `id` string, required — Unique identifier for the directory user
    - `organization_id` string, required — Organization that owns the directory
    - `active` boolean — Whether the directory user is active
    - `email` string, email — Primary email address
    - `given_name` string — Given (first) name
    - `family_name` string — Family (last) name
    - `name` string — Full name from the directory provider
    - `preferred_username` string — Preferred username from the IdP
    - `dp_id` string — Directory provider external identifier
    - `employee_id` string — Employee ID from the directory provider
    - `department` string — Department attribute
    - `cost_center` string — Cost center attribute
    - `division` string — Division attribute
    - `title` string — Job title
    - `user_type` string — User type from the directory provider
    - `phone_number` string — Phone number
    - `language` string — Preferred language
    - `locale` string — Locale
    - `zoneinfo` string — Time zone
    - `organization` string — Organization attribute from the IdP
    - `nickname` string — Nickname
    - `profile` string — Profile URL or identifier
    - `groups` object[] — Directory groups the user belongs to
      - `id` string
      - `name` string
    - `roles` object[] — Roles assigned from directory mapping
      - `role_name` string
    - `custom_attributes` object — Custom attributes from the directory provider
    - `raw_attributes` object — Raw attributes as received from the directory provider
    - `picture` string — Profile picture URL from the directory provider
    - `address` object — Address attributes from the directory provider
  - `display_name` string — Human-readable display name for the event

## Acknowledgement `200`

Webhook received successfully

---

[API](https://skmtc.net/scalekit/apis/scalekit-api-reference.md) · [All operations](https://skmtc.net/scalekit/apis/scalekit-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scalekit/scalekit-api-reference/versions/a40d5d4650e5/schema)
