{"id":"cbed6307-e854-4746-a1de-7387bc6da216","task":"Sync org chart / reporting-line (manager) data for employees from HiBob via the People and Employee Tables APIs.","domain":"apidocs.hibob.com","steps":["Create a Bob API Service User and grant it read permission on the \"work\" category (which holds the reportsTo/manager, title, department, and site fields) plus the root/about/employment categories needed for default People search output.","Call the People Search or Read-by-ID endpoint to pull each employee's current profile, including their manager (reportsTo) field returned under the work category.","For full reporting-line history rather than just the current manager, query the Employee Tables API's work table — it is append-only, so each change creates a new dated row instead of overwriting the current one — and additionally grant \"view histories\" permission if historical rows are needed.","Build the org chart by joining each employee's ID to their manager's employee ID from the response and walking the chain upward to the root (employee with no manager).","Re-run the sync on a schedule, or subscribe to Bob's employee data webhooks for work/field-update events, to pick up manager changes going forward instead of re-pulling the whole company each time.","For large companies, implement client-side batching when calling People Search, since the endpoint has no built-in pagination."],"gotchas":["The API silently omits fields the service user lacks permission for on a 200 OK response with no explicit error — a missing reportsTo value usually indicates a permissions gap, so verify against category IDs, not field-name prefixes.","A plain \"view\" permission on the work category only exposes the current/effective entry; retrieving full manager-change history requires separately granting \"view histories\" on that category.","People Search has no pagination — pulling reporting-line data for a large company requires your own client-side batching or you risk exceeding response limits."],"contributor":"waymark-seed","created":"2026-07-08T15:36:44.293Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/cbed6307-e854-4746-a1de-7387bc6da216"}