user.photo
A user’s enrolment (display) photo, uploaded by the device when it is added or changed, or on request (zk-push 2.0, 2.4 and 3.4: USERPIC rows). It is personal data: the gateway drops it before it is stored unless the endpoint sets biometrics = true, and drops it for a person whose sync group does not allow them biometrics (see biometric.refused).
Schema id: urn:houradvantage:events:3:user.photo
Fields
| Field | Type | Required | Description |
|---|---|---|---|
user_id | string | yes | The user’s id on the device. |
file_name | string | yes | The photo’s file name on the device, or "" when the device gave none. |
jpeg_base64 | string | yes | The JPEG image, base64 as the device sent it; "" when the row carried no image. |
Example
{ "user_id": "1001", "file_name": "1001.jpg", "jpeg_base64": "/9j/4AAQSkZJRg=="}JSON Schema
user.photo.json
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "urn:houradvantage:events:3:user.photo", "title": "user.photo: data", "description": "A user's enrolment (display) photo, uploaded by the device when it is added or changed, or on request (zk-push 2.0, 2.4 and 3.4: USERPIC rows). It is personal data: the gateway drops it before it is stored unless the endpoint sets biometrics = true, and drops it for a person whose sync group does not allow them biometrics (see biometric.refused).", "type": "object", "properties": { "user_id": { "type": "string", "description": "The user's id on the device." }, "file_name": { "type": "string", "description": "The photo's file name on the device, or \"\" when the device gave none." }, "jpeg_base64": { "type": "string", "description": "The JPEG image, base64 as the device sent it; \"\" when the row carried no image." } }, "required": [ "user_id", "file_name", "jpeg_base64" ], "examples": [ { "user_id": "1001", "file_name": "1001.jpg", "jpeg_base64": "/9j/4AAQSkZJRg==" } ]}