# Org chart and headcount

> The current reporting lines as a tree, and headcount on today, at the end of last month, quarter and year, or any date.

Source: https://docs.ligament.ai/guides/hr/org-chart-and-headcount/

## Org chart

**HR › Org chart** shows the current reporting lines as a tree, starting from the people with no manager. Each person shows their job title, department and location, how many direct reports they have and how many people sit below them in total. The first two levels are open; click a row’s triangle to open or close the level below.

\[Screenshot: The org chart: the CEO with 6 direct reports and 57 people in total, the heads of Engineering, Sales and Operations, and their managers\]

Everyone sees the part of the organisation their access allows, read as them: the chart never shows a person, or a field, that the viewer couldn’t open as a record. Leavers are left out.

The chart shows today’s reporting lines. The manager isn’t dated, so the chart can’t show the organisation as it was on an earlier date yet.

You can add an org chart to any page in the page builder: the **Org chart** block draws a tree along any reference from an entity to itself, such as `manager` on employees or `parent` on departments.

## Headcount

**HR › Headcount** counts active employees today and at the end of last month, last quarter and last year, by department and by location. The counts read the dated job and employment history, so a person who joined on 17 November counts from that day, and a person who left on 29 November counts up to the 28th.

\[Screenshot: The headcount page: 58 today and at the end of last month, quarter and year, with tables by department for today, the end of last month and the end of last year\]

For any other date, open **Employees** and add `asOf` to the address, for example `/r/hr_employee?asOf=2026-06-30&group=department`: the list shows everyone as they were on 30 June 2026, grouped by department with a count per group. The API takes the same parameter:

```bash
curl -s "https://app.ligament.ai/api/records/hr_employee?asOf=2026-11-28&filters=%5B%7B%22field%22%3A%22employment_status%22%2C%22op%22%3A%22ne%22%2C%22value%22%3A%22terminated%22%7D%5D&limit=1" \
  -H "authorization: Bearer ***"
```

In a workspace with example data this returns `"total": 59` on 28 November and 58 today: Mark Sullivan left on 29 November.

Page blocks take the same dates: a metric, chart or list block’s **As of** setting accepts a date or `@today`, `@end_of_last_month`, `@end_of_last_quarter` and `@end_of_last_year`. See [As-of reads](https://docs.ligament.ai/guides/effective-dating/as-of/index.md).
