Managing Departments
TeamBook Connected Org gives departments a first-class presence: each department is a row in the TeambookDepartments SharePoint list inside your site collection. The list is auto-provisioned the first time the directory loads, so you have nothing to set up manually.
Once the list exists, manage it from the Manage Departments sidebar item — not by editing the SharePoint list directly. The in-app panel gives you live previews, validation, and a one-click Microsoft Entra ID import.
Opening Manage Departments
- Open any page hosting the directory web part.
- In the sidebar, click Manage Departments (visible only to SharePoint site owners / admins).
- The panel opens with the current list of departments.
One-click import from Microsoft Entra ID
The fastest way to populate departments is to import them from your existing Microsoft Entra ID data.
- In the Manage Departments panel, click Import from Microsoft 365.
- The panel scans every employee’s
departmentfield in Microsoft Entra ID and lists every distinct value. - Tick the values you want to bring in as departments.
- Click Import.
- Each ticked value becomes a new row in
TeambookDepartments— with a generated icon and accent colour you can tweak afterwards.
Importing is idempotent — running it again only brings in new values you haven’t already imported. Existing rows are not touched.
Editing a department
Click any department row to open the editor. Fields:
| Field | Description |
|---|---|
| Title | The display name shown on the Departments grid and detail page. |
| Microsoft Entra ID department value | The exact value in Entra ID that should match users to this department. Case-insensitive. |
| Description | A short paragraph shown on the detail page hero. |
| Icon | A Material Symbol (search the picker by name). |
| Accent colour | A hex colour for the department’s pill, accent bar, and detail-page hero gradient. |
| Department head email | Optional. The colleague whose avatar appears as “Head of department” on the detail page. |
| Display order | Number — lower values sort first on the grid. |
| Hidden | Tick to keep the department row but hide it from the user-facing grid. |
Click Save. Changes appear in the directory on the next page load.
Adding a department manually
- Click + Add department.
- Fill in at minimum the Title and the Microsoft Entra ID department value.
- Optionally set the icon, accent colour, description, head email.
- Click Save.
Removing a department
Click the row’s overflow menu (⋯) → Delete. The row is removed from TeambookDepartments. People whose Entra ID department field matched it still appear in the main directory and search — they just aren’t grouped under a tile any more.
When data doesn’t match
If a colleague’s Microsoft Entra ID department field doesn’t exactly match any Microsoft Entra ID department value in the list, the colleague still appears in the main Employee Directory and in search — they’re just ungrouped on the Departments page.
To fix this either:
- Update the colleague’s
departmentvalue in Microsoft Entra ID, or - Add the existing value as a new department row in TeamBook (or rename an existing row’s Microsoft Entra ID department value to match).
Direct SharePoint-list access (advanced)
The underlying SharePoint list lives at https://<tenant>.sharepoint.com/sites/<your-site>/Lists/TeambookDepartments and you can edit it directly. We recommend using the in-app panel because:
- It validates your
Microsoft Entra ID department valueagainst actual Entra data. - It gives you a live colour preview.
- It populates the icon picker with the same Material Symbols the directory uses.
- It batches related fields so you don’t accidentally save a half-finished row.
If you ever need to inspect or bulk-edit the list directly, the columns are: Title, EntraDepartmentValue, Description, Icon, AccentColor, DeptHeadEmail, DisplayOrder, Hidden.