Skip to content

user.updated webhook event

The user.updated event notifies your endpoint when a user's profile, location, department, role or work week changes. This page covers the event trigger, the required scope, the headers that accompany each delivery, and the shape of the JSON body so you can handle it reliably.

When the event fires

The event is sent when a user's profile, location, department, role or work week changes. The webhook owner must hold the users:read scope. Two related events cover adjacent changes: user.status-changed fires when a user is activated or deactivated, and user.quota-updated fires when leave quotas or rollover change. If you only subscribe to user.updated, those two changes will not reach your endpoint.

Headers on every delivery

Each delivery carries a set of headers you should read before parsing the body. VT-Signature is required and encodes a timestamp plus an HMAC-SHA256 signature of the timestamp and raw body; during the 24 hours after a secret rotation it carries a second signature entry signed with the previous secret. VT-Webhook-Id identifies the webhook the delivery belongs to. VT-Event-Id matches the id field in the body and is the value to use for deduplication. VT-Event-Type matches the type field. VT-Delivery-Id stays the same across retries of one delivery, while VT-Delivery-Attempt starts at 1 and increments on each retry. User-Agent is a fixed product identifier whose exact value is defined in the accompanying header contract module.

Body shape

The body is JSON with a fixed envelope: id, type, apiVersion, createdAt, companyId, data, and an optional apiClient. For this event, type is one of user.updated, user.status-changed or user.quota-updated, and apiVersion is "2". createdAt is an ISO 8601 timestamp. data is the affected user in the same shape the matching GET endpoint returns without expand. apiClient is present only when the change was made through the API and identifies the key that made it.

Fields inside data

The data object carries the user record. Required fields are id, name, email, isAdmin, locationId, departmentId, status, employeeId, startDate, endDate and labels. locationId, departmentId, employeeId, startDate and endDate are nullable — they are null when the user has no value set yet. status is one of ACTIVE, INACTIVE or DELETED. labels is an array of objects with id, name and color. Optional expanded objects location, department and holidays appear only when the expand option includes them; each carries its own identifiers and timestamps.

Deduplication and retries

Use VT-Event-Id (or the body id) to skip duplicate deliveries. The event ID is deterministic, so the same change always produces the same ID. VT-Delivery-Id stays constant across retries of one delivery, while VT-Delivery-Attempt increments from 1. A retry is not a new event; treat it as the same delivery and deduplicate on the event ID, not the delivery ID.

Signature verification

VT-Signature is required on every delivery and has the form t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">. Verify it against the raw request body before parsing. For 24 hours after a secret rotation the header carries a second v1 entry signed with the previous secret, so accept either entry during that window. A missing or mismatched signature should be rejected before any side effect runs.

Choosing the right user event

Three user-related events exist and they are not interchangeable. Subscribe to user.updated when you care about profile, location, department, role or work week changes. Subscribe to user.status-changed when activation or deactivation matters. Subscribe to user.quota-updated when leave quotas or rollover change. A single endpoint can receive all three; branch on the type field in the body or the VT-Event-Type header.

Failure checklist

If deliveries are not arriving, confirm the webhook owner holds users:read. If the body parses but the signature check fails, confirm you are hashing the raw body and the timestamp exactly as sent, and remember the previous-secret window after rotation. If you see the same change twice, deduplicate on VT-Event-Id rather than VT-Delivery-Id. If a status or quota change is missing, check whether you subscribed to user.status-changed or user.quota-updated in addition to user.updated.

Frequently asked questions

Which scope does the webhook owner need for user.updated?

The owner needs users:read.

Does user.updated also fire when a user is activated or deactivated?

No. Activation and deactivation are covered by user.status-changed, which is a separate event. Subscribe to both if you need to react to either kind of change.

What is the difference between VT-Event-Id and VT-Delivery-Id?

VT-Event-Id identifies the change and is deterministic, so the same change always has the same ID. VT-Delivery-Id identifies one delivery attempt sequence and stays the same across retries of that delivery. Deduplicate on the event ID.

What does the apiClient field tell me?

It identifies the API key that made the change and is present only when the change was made through the API. It carries keyId, an optional name (the integration name users see), and ownerId.

VT-Signature

FieldTypeRequiredDescriptionConstraints
VT-SignaturestringYest= ,v1= . "> . For 24 hours after a secret rotation it carries a second v1 entry signed with the previous secret. See Signature verification at the top of this document.

VT-Webhook-Id

FieldTypeRequiredDescriptionConstraints
VT-Webhook-IdstringYesthe ID of the webhook the delivery is for.

VT-Event-Id

FieldTypeRequiredDescriptionConstraints
VT-Event-IdstringYesthe event ID, the same as id in the body. Use it to skip duplicate deliveries.

VT-Event-Type

FieldTypeRequiredDescriptionConstraints
VT-Event-TypestringYesthe event type, the same as type in the body.Allowed values: $3b

VT-Delivery-Id

FieldTypeRequiredDescriptionConstraints
VT-Delivery-IdstringYesthe delivery ID, unique per delivery and kept across retries of the same delivery.

VT-Delivery-Attempt

FieldTypeRequiredDescriptionConstraints
VT-Delivery-AttemptintegerYesthe attempt number of this delivery, starting at 1.1 <= value