person.deleted
Sent by the gateway for a sync group that keeps people: a person was deleted from the group’s registry, through the admin API or taken in from a member device. The person and their credentials are deleted from every member that holds them. The person’s punch state (their recent punches, used for the duplicate and lockout checks) and the aliases of their old user ids are removed too. The envelope has endpoint “sync:
Schema id: urn:houradvantage:events:3:person.deleted
Fields
| Field | Type | Required | Description |
|---|---|---|---|
user_id | string | yes | The deleted person’s user id in the group. |
version | integer | yes | The row’s version: the change’s position among the group’s changes. A higher version is a later change within the group. at least 1 |
origin | string | yes | Who made the change: “api: |
Example
{ "user_id": "1001", "version": 57, "origin": "device:office/CG0001"}JSON Schema
person.deleted.json
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "urn:houradvantage:events:3:person.deleted", "title": "person.deleted: data", "description": "Sent by the gateway for a sync group that keeps people: a person was deleted from the group's registry, through the admin API or taken in from a member device. The person and their credentials are deleted from every member that holds them. The person's punch state (their recent punches, used for the duplicate and lockout checks) and the aliases of their old user ids are removed too. The envelope has endpoint \"sync:<group>\", device \"\" and package \"houradvantage-connect\"; the event goes to the sinks the group names.", "type": "object", "properties": { "user_id": { "type": "string", "description": "The deleted person's user id in the group." }, "version": { "type": "integer", "minimum": 1, "description": "The row's version: the change's position among the group's changes. A higher version is a later change within the group." }, "origin": { "type": "string", "description": "Who made the change: \"api:<login>\" for the admin API (\"api:local\" when the API has no login), or \"device:<endpoint>/<device>\" for a member device whose report the group took in (only where the group shares the domain with its devices)." } }, "required": [ "user_id", "version", "origin" ], "examples": [ { "user_id": "1001", "version": 57, "origin": "device:office/CG0001" } ]}