Audience: on-call engineers, Ops, senior Support. Symptom → diagnosis → fix for People/org/HRIS-sync incidents.
Companion: technical.md, hris-integrations.md, how-to.md.
⚠️ Direct SQL runs against a tenant DB — confirm the correct
(OrganisationId, CompanyId)first; prefer app endpoints.
Symptom: reporting lines on Org. Chart don't match the managers set.
Diagnosis: the chart is materialised by OrganisationChartContainers_Trigger from Person.ManagerId. It can lag after bulk manager changes.
Fix: correct the offending ManagerId(s); the trigger re-materialises. If still stale, ⚠️ VERIFY the manual rebuild path (re-run the org-chart materialisation). Watch for cycles (A→B→A) — they break the tree.
Symptom: a change made in the external HRIS isn't in PaidHR.
Check, in order:
Integration/*Notification)"… synchronization job failed for organisation group {companyKey}" in logs)IntegrationUniqueId? (mismatch → upsert misses)Full detail: hris-integrations §6.
Cause: IntegrationUniqueId absent/mismatched → the upsert didn't find the existing Person and inserted a new one.
Fix: reconcile the keys; merge/deactivate the duplicate. Prevent by ensuring the external key is mapped before enabling sync.
Check: their admin role tier, internal-vs-external status, and whether they're the Primary Admin. PrimaryAdminHasFullAccess and ChangePrimaryAdmin govern top-level access (technical §28–29). The deep permission model lives in the Roles & Permissions subsystem.