Get the state of the company's HRIS sync
Return the state of the company’s HRIS sync (the employee directory synchronisation) as JSON: use it to check that the sync works and to find what is wrong. integrations lists each HRIS connected with its connection issue (null when it syncs), its first sync status and date, its last sync, and the outcome and counts (fetched, processed, refused, failed) of its last run; a disabled one is listed and flagged. employees counts the current employees in Primo and those imported by the HRIS, with how many lack a work email, a manager or a start date and up to 5 example names of each. problems is computed by Primo, each entry holding a code, the hris it is about and a count: NO_HRIS_CONNECTED, the connection issues RECONNECTION_NEEDED, SETUP_INCOMPLETE, IMPORTING, PAUSED and REMOVED_FROM_KOMBO, FIRST_SYNC_NOT_DONE, FIRST_SYNC_FAILED, LAST_SYNC_FAILED, EMPLOYEES_FAILED (an employee refused, such as a leaver with no usable data, is no problem), MISSING_WORK_EMAIL, MISSING_MANAGER (raised when more than one imported employee has none, since the top of the org chart has no manager) and MISSING_START_DATE. An empty problems means the sync looks right. For the status of the Setup task about the HRIS, use getCompanySetup instead. Only accessible with a Company API key.