users.deleted
Crewsum sends users.deleted when a user is deleted.
Event type
Section titled “Event type”users.deletedWhen it is sent
Section titled “When it is sent”- The Delete User API endpoint (
DELETE /v1/users/users/:id). - Deleting a user in the Crewsum app.
Crewsum sends the event only after the change is saved. A request that fails or is rejected sends no event. See Delivery for timing and retries.
Payload
Section titled “Payload”data.users is an array with one user, as it was just before the deletion.
{ "event": "users.deleted", "data": { "users": [ { "userId": "acme#alex.rivera", "email": "alex.rivera@example.com", "displayName": "Alex Rivera", "systemRole": "assoc", "customFields": { "employeeNumber": "E-2041" }, "supplierId": null, "startDate": "2026-01-05", "endDate": null, "createdAt": "2026-09-28T14:05:12.000Z", "updatedAt": "2026-09-28T14:05:12.000Z", "preferredTimezone": "America/Los_Angeles", "groups": [ { "id": "group-abc123def4567890", "name": "Field Technicians", "description": "On-site installation crew", "userCount": 4, "createdAt": "2026-09-28T14:05:12.000Z", "updatedAt": "2026-09-28T14:05:12.000Z" } ] } ] }}