Passing Data
Why This Matters
Best Practice: Lazy Load Fresh Data
Supported Interfaces
Employee[]
Property | Type | Required | Description |
---|---|---|---|
id | string | Yes | The employee ID from your system. Used as the primary reference. |
name | string | Yes | Display name for the employee. Not stored by Easyteam. |
picture | string | No | Optional URL to the employee's avatar. |
timeTrackingEnabled | boolean | No | If set to false , time tracking features will be hidden for this employee. |
role | string or Role | No | Role name (e.g., manager ) or a reference to a Role object. See below. |
payrollId | string | No | Optional identifier from your external payroll system. |
deletedAt | string 'YYYY-MM-DD' | No | Set if the employee is soft-deleted. Typically used for archival visibility. |
isVisible | boolean | No | Controls UI visibility without deleting the employee. |
wage | number | No | Optional wage amount used for reporting purposes. |
wageType | 'hourly' | 'weekly' | 'monthly' | No | Specifies how the wage should be interpreted. |
Make sure each id
andlocationId
maps to identifiers from your platform.
Location[]
Property | Type | Required | Description |
---|---|---|---|
id | string | Yes | Unique identifier for the location from your system. |
latitude | number | Yes | Latitude coordinate for the location (used for geofencing/time clock). |
longitude | number | Yes | Longitude coordinate for the location. |
name | string | No | Human-readable name of the location. |
timezone | string | No | Timezone associated with this location |
employees | [employeeId: string] : {} or null | No | Map of employee IDs assigned to this location. Make sure the employees match the employees object. Allowed to set metadata about each employee |
Set deleted_at : 'YYYY-MM-DD' on a location's employee assigment to mark them as not longer working there.
Set deleted_at : 'YYYY-MM-DD' on a location's employee assigment to mark them as not longer working there.
Organization
Property | Type | Required | Description |
---|---|---|---|
id | string | Yes | Your internal organization ID. |
name | string | Yes | Company display name. |
Example
✅ This data is passed at runtime, used locally in the browser, and never persisted by Easyteam.
Security Reminder
jwt
you generate contains permission metadata, but no PII. See Authentication Docs for how to generate secure tokens.Next Steps
1.
2.
employees
, locations
, and organization
objects as shown above3.
Modified at 2025-06-14 10:34:31