Webhook
Directory User Updated
Triggered when a directory user is updated
Body·
application/json
- Type: stringenvironment
_id min length:1max length:32Pattern: ^env_requiredThe environment ID where the event occurred
- Type: stringidmin length:1max length:32
Pattern: ^evt_requiredUnique identifier for the webhook event (must be prefixed with "evt_")
- Type: stringenumobjectrequired
The type of object that triggered the webhook
values- Organization
- Connection
- Role
- Directory
- Directory
User - Directory
Group - Permission
- Org
Membership - User
- Type: stringFormat: date-timeoccurred
_at requiredWhen the event occurred (ISO 8601 format)
- Type: stringspec
_version Pattern: ^[0-9]+$requiredThe webhook specification version
- Type: stringenumtyperequired
The event type
values- organization
.created - organization
.updated - organization
.deleted - organization
.sso _created - organization
.sso _deleted
- Type: objectdata
The event payload (structure varies by event type)
- Type: stringdisplay
_name min length:1max length:200Human-readable display name for the event
- Type: stringorganization
_id min length:1max length:32Pattern: ^org_The organization ID (if applicable)
Responses
- 200
Webhook received successfully
Request Example for postorganization.directory.user_updated
{
"spec_version": "1",
"id": "evt_53891546994442317",
"type": "organization.directory.user_updated",
"object": "DirectoryUser",
"occurred_at": "2025-01-06T18:44:25.153954Z",
"environment_id": "env_53814739859406915",
"organization_id": "org_53879494091473415",
"data": {
"id": "diruser_12312312312312",
"organization_id": "org_53879494091473415",
"dp_id": "<scim_external_id>",
"preferred_username": "<idp_user_name>",
"email": "john.doe@example.com",
"active": true,
"name": "John Doe",
"roles": [
{
"role_name": "billing_admin"
}
],
"groups": [
{
"id": "dirgroup_12312312312312",
"name": "Group Name"
}
],
"given_name": "John",
"family_name": "Doe",
"nickname": "Jhonny boy",
"picture": "https://image.com/profile.jpg",
"phone_number": "1234567892",
"address": {
"postal_code": "64112",
"state": "Missouri",
"formatted": "123, Oxford Lane, Kansas City, Missouri, 64112"
},
"custom_attributes": {
"attribute1": "value1",
"attribute2": "value2"
},
"raw_attributes": {}
},
"display_name": "Directory User Updated"
}
No Body