# Departments

> **Portal:** Admin Portal · **Section:** Setup & Configuration · **Updated:** 2026-11-20
> **Menu:** Setup > Departments
> **Canonical URL:** https://docs.field-ascend.com/admin-portal/setup/departments

## What This Area Is For

**Manage Departments** is where you define your organisation’s **department names** and a setting called **Allowance** that tells the system whether each department is meant mainly for **office/admin** staff, **field engineers**, or **both**. Departments are used when building **staff profiles** (employment details, reporting structure) and when **tagging engineers** with one or more departments.

Keeping this list tidy avoids confusion in HR views, filters, and “which department is this person in?” questions later.

Optionally, a master user can switch on **Use departments to route work**. Departments can then sit inside each other (a region, its areas, their teams), sites and new jobs and tickets carry a department, and supervisors can be narrowed so they only see their part of the company. Switching on changes nothing for anyone until you narrow a person on their Staff form, and it can be switched off again without losing the structure.

## What You'll See On This Page

**Page title:** “Manage Departments” — or, when departments route work, your own word for them (**Departments** unless you changed it under **Routing**).

**Positions** — a button beside the title that opens the **Positions** list.

**Messages**

- Red **error** text (e.g. missing name, invalid record, a department that cannot be deleted yet).
- Green **success** text after add, update, or delete, and short confirmations after switching routing on or off, saving routing, or running a **Getting started** action.

**Use departments to route work** (a card above the list while it is switched off, on accounts where it is available)

- A short explanation and a **Switch on** button. Only master users see the button; anyone else sees “A master user can switch this on.”
- After switching on you see: “Switched on. Nothing changes for anyone until you narrow a person on the Staff form — work through the checklist first.”

**Add Department**

- Button **Add Department** — toggles open a **card-style form** (hidden until clicked).
- Form fields:
  - **Name** (required).
  - **Allowance** — dropdown with exactly these visible choices: **Admin**, **Engineer Only** (default for new rows), **All**, **Both**.
  - When departments route work, also **Under**, **Level name** and **Order** (see below).
- Button **Add** — saves and returns you to a fresh view of the list.

**Edit Department** (only when editing)

- When you click **Edit** on a row, an **Edit Department** section appears (same page) with the same **Name** and **Allowance** fields pre-filled, plus **Update** to save. When departments route work it also has **Under**, **Level name**, **Order**, **Area rules** (when your routing uses them) and **Default permissions**.

**Department table** (while routing is switched off)

Filter row above the table:

- **Search name** — filters the list by department name.
- **25 per page / 50 / 150** — how many rows per page.
- **Filter** — applies search and page size.
- **Export CSV** — downloads **Name** and **Allowance**. With routing switched off the file holds the first 25 departments in name order — it does not follow the search box or page size. With routing switched on it holds every department, plus **Under** and **Level**.

Table columns:

- **Name** — the label shown everywhere else in the product.
- **Allowance** — same wording as the dropdown (e.g. “Engineer only”, “Admin”), indicating how the department is classified.
- **Staff count** — how many **staff profiles** currently have this department set as their **primary linked department** (displayed as “N staff”).
- **Actions** — **Edit** (opens edit mode for that row via the address bar) and **Delete** (asks for confirmation; if staff are still assigned, the confirmation warns with the **count**).

**Pagination**

- Numbered pages when there is more than one page; they preserve your search and page size.

**Empty state**

- If nothing matches, you will see **“No departments found.”**

### When departments route work

Once a master user clicks **Switch on**, the page changes as follows.

**Getting started** — a numbered checklist with live counts. Nobody's view changes until you narrow them, so work down this list first:

1. **How is your work split?** — a chip shows your routing choice; change it under **Routing**.
2. **Build the structure** — how many departments you have so far. Use **Under** to put one inside another.
3. **Put people in their departments** — on each person's Staff form, tick their departments and their **Home**. If some logins have no staff record yet, the step tells you how many — open them on the Staff page first.
4. **Give sites a department** — how many sites have none yet. Set them on the **Sites** list or on each site. When your area rules would place some of them, **Apply your area rules to N sites** does it in one go.
5. **Bring open work across** — open jobs and open tickets that have no department but whose site has one. **Bring N across** gives them their site's department (it asks you to confirm). New work is routed by itself.
6. **Narrow supervisors when you are ready** — on the Staff form set **Sees** to “only their departments”. The step shows how many people are narrowed now.

If there is more to do than one run handles, the confirmation says “There are more — run it again.”

**Routing** card

- **How is your work split?**
  - **By place** — work goes to the department that looks after the site or the area it is in — draw the areas on a map, or list postcodes and towns.
  - **By customer** — work goes to the department that looks after the customer.
  - **By type of work** — work goes by its category; set up an automation rule per category.
  - **You choose** — the office picks the department on every job and ticket.
  - If your routing has been set up differently from these, the card says “Your routing has been customised.”
- **Draw areas on the map** (with **By place**) — opens **Departments on the map** (see below). Once areas are drawn the button reads **Edit the map (N areas)**.
- **Your word for it** and **… more than one** — for example *Branch* / *Branches* (up to 40 characters each). Leave them blank to keep *Department* / *Departments*. The page title and its wording use your word.
- **Narrowed people may send work back up (to a department above theirs, or to the unrouted queue)** — on by default.
- **Narrowed people also see work that has no department yet** — off by default.
- **Save**, and for master users **Switch off** — it asks you to confirm. Everyone then sees the whole company again; the structure and the departments already on sites and jobs are kept for when you switch back on.

**Extra fields on Add / Edit Department**

- **Under** — **— Top level —** or the department this one sits inside. The tree can be up to **4 levels** deep (for example Region → Area → Department → Team). Choices that would go deeper are left out, or greyed out as **(too deep)** when editing, and a department cannot sit under itself or under one of its own departments. If a move is refused, your other changes are still saved and a red message explains why (for example “That would make the tree more than 4 levels deep.”).
- **Level name** — an optional label such as *Region*, *Area* or *Team* (suggestions include the level names you already use). It shows as a small tag in the tree.
- **Order** — a number that sets the order among departments at the same level (lower first, then by name).

**Area rules** (when editing, and only when your routing uses them — **By place**, or **By customer** for the postcode and town rules)

- **Postcode areas** — comma separated, for example “CH1, CH65 9”.
- **Towns or counties** — comma separated.
- For **By place**, a depot pin: **Depot latitude**, **Depot longitude** and **Covers up to (km)** (blank = no limit). Work with a pin but no address goes to the nearest depot that covers it.
- New sites, and work with no site of its own, land in this department when they match. Leave a box blank to skip it.
- With **By place**, a line says how many areas are drawn for this department on the map (**Draw** / **Edit** opens it). Drawn areas are checked first; postcodes, towns and depot pins catch what has no pin or falls outside every area.

**Default permissions** (when editing)

- What people whose **Home** is this department start with — one choice each for **Office users**, **Engineers** and **Staff portal**.
- Pick a saved permission template, or leave the first choice: **Same as above — …** when a department above this one has a template (people then inherit it), otherwise **None — people keep their own ticks**.
- Only people set to **Same as their department** on their Staff page follow it; everyone else keeps their own ticks. Templates are made on any Staff page (System Access → save the ticks as a template).
- Saving brings everyone who follows their department up to date.

**The list becomes a tree**

- Columns: your word for it (e.g. **Department**), **Allowance**, **Staff**, **Sites**, **Open jobs**, **Open tickets**, **Actions** (**Edit** | **Delete**).
- Departments inside another are indented under it with an arrow, their level name shows as a tag, a pin icon means a depot pin is set, and a map icon means it has areas drawn on the map.

### Departments on the map

Opened from **Draw areas on the map** in the **Routing** card (routing switched on, **By place**). Same access as this page.

- **Left:** every department in tree order with its colour, how many areas it has and how many sites would land in it. Click one to work on it.
- **Draw area** — click on the map to place corners; click the first corner to finish. **Circle** — press and drag out from the centre. A department can have several shapes.
- With a department picked, drag a corner to change its shape. Click a shape to give it a name (optional, shown when a job says why it landed there) or **Remove shape**.
- **Snap to other areas** (on by default) — near another area, a corner you place or drag jumps onto that area's corner, or onto its edge; an orange ring shows where it will land. Put two corners in a row on a neighbour's corners and its border between them is copied, so the two areas meet exactly with no gap and no overlap. Hold **Alt** to place a corner freely, or untick the box.
- **Sites** show as dots in the colour of the department they would land in. A dot with a dark ring was placed **by hand** and will not move. A bigger dot with an orange edge would move when you save. Grey = no department. Untick **Show sites** to hide them.
- **Review & save** — shows exactly what saving would do before anything changes: sites inside the department's areas, how many move in and out (and from where), sites placed by hand that stay put, pinned sites in no area, and sites with no pin. **Save** stores the shapes and moves the sites. **Undo changes** puts back what was last saved.
- A department with unsaved changes has an orange dot. You save one department at a time; the page warns you if you try to leave with unsaved changes.

How it decides:

- A site whose pin is inside an area goes to that department. **Where areas overlap, the smaller one wins**, so a team drawn inside its region takes the sites in its patch.
- The pin comes from the site's address. A site with no pin (its address could not be found exactly) uses the postcode and town rules instead.
- A ticket's own location, or an asset's own pin, is checked before its site when the site has no department yet.
- Saving moves only sites with no department or that were placed by a rule. A site somebody chose by hand, that took its customer's department, or came in from an import never moves.
- Open jobs and tickets keep their department. New work at a moved site follows the site.
- A redraw never leaves a site with no department: a site the rules placed that now falls in no area keeps its department, unless a postcode or town rule now places it.
- Up to 200 areas per company; a shape can have up to 500 corners; a circle's radius can be 50 m to 500 km.
- The whole tree shows on one page (there is no page-size choice); **Search name** still filters it.

## What You Can Do Here

- **Create** departments with a clear **Name** and the right **Allowance** classification.
- **Rename** or **reclassify** a department using **Edit** → **Update**.
- **Delete** a department you no longer need (with a warning if people are still counted in it). A department that still has departments under it, sites homed on it, or open jobs or open tickets in it cannot be deleted until those are moved.
- **Search**, **paginate**, and **export** a simple CSV for audits or planning.
- As a master user, **switch on department routing**, then build a tree of departments, choose how work is split, set your own word for “department”, add **area rules** and **default permissions**, and work through the **Getting started** checklist.

## Ask the assistant (Help & requests, or the chat on this page)

The assistant can read your departments and change them with your yes:

- **add**, **rename** or **delete** a department, move it **under** another, change its order and what each level is called;
- set the **postcode areas**, **towns** and **depot** that send jobs to it (switching department routing on is for a master admin);
- set its **default permissions** and its **holiday allowance**.

Deleting or moving a department, or changing its default permissions, is shown to you first; nothing changes until you say yes. Areas drawn on the map stay on the **Departments on the map** page.

## Common Tasks

### Create a department for a new team or cost centre

1. Click **Add Department**.
2. Enter the **Name** (e.g. “Service”, “Installations”, “Office”).
3. Choose **Allowance**:
   - **Engineer Only** — typical for crews and field-based groups (default).
   - **Admin** — for departments that mainly describe **office** or **back-office** teams; on some **engineer-only** pickers elsewhere in the product, **Admin**-only departments may **not** appear so engineers are not tagged with purely office labels.
   - **All** — use when the department should be selectable in **mixed** admin and engineer contexts broadly.
   - **Both** — use when the department should be treated as relevant to **both** engineer and admin-style assignments (broader than “engineer only”, more specific than “all” in intent — pick the label that matches how your business talks about the team).
4. When departments route work, choose **Under** (where it sits in the tree) and optionally a **Level name**.
5. Click **Add**.

### Change a department’s name or type

1. In the table, click **Edit** on that row.
2. Adjust **Name** and/or **Allowance** (and, when departments route work, **Under**, **Level name** or **Order**).
3. Click **Update**.

### Remove a department

1. Click **Delete** on the row.
2. Read the confirmation — if it mentions staff still in the department, reassign those people first on **Add Engineer/Staff** (Employment tab: **Departments** checkboxes and related fields) or clear the department where appropriate.
3. Confirm to delete. The system clears this department from **staff profiles** and from **engineer assignments** that used it, so people are not left pointing at a label that no longer exists.
4. If you see “This department can't be deleted yet: … Move them first.”, the message lists what still sits in it — departments under it, sites homed on it, open jobs or open tickets. Move those to another department, then delete. Completed jobs and closed tickets do not block a delete.

### Export departments for a spreadsheet

1. Click **Export CSV**.
2. With routing switched off, the file holds **Name** and **Allowance** for the first 25 departments in name order (the search box and page size are not applied). With routing switched on, it holds every department with its **Under** and **Level**.

### Switch on department routing (master users)

1. On the **Use departments to route work** card, click **Switch on**.
2. In **Routing**, choose **How is your work split?**, set **Your word for it** if you call them something else (Branches, Regions…), and click **Save**.
3. Build the tree: **Add Department** for each one, choosing **Under** and a **Level name**.
4. Work down **Getting started**: put people in their departments on their Staff forms (ticks and **Home**), give sites a department, then **Bring N across** for open work.
5. When you are ready, narrow supervisors on their Staff form (**Sees** → only their departments). Until then nobody's view changes.

### Route new sites by postcode or town

1. In **Routing**, choose **By place** (or **By customer**) and click **Save**.
2. **Edit** a department and fill in **Area rules** — postcode areas, towns or counties and, for **By place**, a depot pin with how far it covers.
3. Click **Update**, and repeat for each department.
4. For sites you already have, use **Apply your area rules to N sites** in **Getting started**.

### Draw each department's area on a map

1. In **Routing**, choose **By place** and click **Save**.
2. Click **Draw areas on the map**.
3. Click a department on the left, then **Draw area** (or **Circle**) and draw its patch. Add more shapes if it covers more than one place.
4. Check the dots: the orange-edged ones are the sites that will move.
5. Click **Review & save**, read the counts, then **Save**. Repeat for each department.
6. For a team inside a region, draw the team's smaller area inside the region's — the smaller one wins where they overlap.
7. For two neighbours, draw the second one's shared side by clicking on the first one's corners (they snap) — the border between them is copied, so nothing falls in a gap or in both.

### Give everyone in a department the same starting permissions

1. On any Staff page, save a set of ticks as a template (System Access → save the ticks as a template).
2. **Edit** the department and, under **Default permissions**, pick the template for **Office users**, **Engineers** and/or **Staff portal**.
3. Click **Update**. People whose **Home** is this department and who are set to **Same as their department** on their Staff page now follow it; departments underneath can inherit it (**Same as above**).

### Switch department routing off

As a master user, click **Switch off** in the **Routing** card and confirm. Everyone sees the whole company again. The tree and the departments already on sites and jobs are kept for when you switch back on.

## Important Options

- **Allowance is not a security barrier by itself** — it guides **where department names appear** (especially separating **office-style** departments from **field-style** ones). Actual permissions for engineers and admins are configured on their respective access screens.
- **Staff count** is based on who has this department as their **primary** staff-profile department link — use it as a quick “who still references this?” indicator before deleting.
- **First checked department is primary** — on **Add Engineer/Staff**, the Employment tab explains that when someone is in multiple departments, the **first** department ticked becomes the **primary** one for syncing display fields. Order matters there, not on this setup page.
- **Only a master user** can switch department routing on or off.
- **Switching on changes nobody's view** until a person is narrowed (**Sees** on their Staff form). Work through **Getting started** first.
- **Up to 4 levels** of departments inside each other.
- **Area rules** only appear for routing choices that use them (**By place**, **By customer**).
- **Default permissions** only affect people set to **Same as their department** on their Staff page.
- **Delete is refused while live things remain** — departments underneath, sites homed on it, or open jobs or open tickets in it. Staff in the department do not block a delete; they are taken out of it.

## Common Mistakes

- **Deleting while staff count > 0** — allowed after confirmation, but you may create **blank** department fields on profiles until someone edits them; better to **reassign people first**, then delete.
- **Expecting “Admin” departments on engineer-only pickers** — some engineer-facing department lists intentionally **hide** departments whose allowance is **Admin** only, so engineers only see field-relevant teams. If an engineer must belong to a department that is not listed on a legacy engineer screen, switch allowance to **Engineer Only**, **All**, or **Both**, depending on your governance.
- **Confusing “Department (text)” with tick-box “Departments”** — on **Add Engineer/Staff**, there is both a free-text **Department (text)** field and a **Departments** checkbox list fed from this page. For consistency, prefer maintaining the **checkbox list** and letting the product keep text in sync where it offers to do so.
- **Assuming the CSV is the whole organisation** — with routing switched off, the export holds the first 25 departments in name order, whatever you typed in the search box or chose as page size. With routing switched on it holds the whole tree.
- **Expecting supervisors to see less the moment routing is switched on** — nobody's view changes until **Sees** is narrowed on their Staff form.
- **Trying to delete a department that still has sites, open work or departments under it** — the message lists what to move first.
- **Looking for Area rules while routing is By type of work or You choose** — switch to **By place** or **By customer** first.
- **Expecting Default permissions to overwrite everyone's ticks** — only people set to **Same as their department** follow them.
- **Expecting a hand-picked site to follow the map** — a site somebody chose a department for by hand never moves. Set it back on the site, or pick the department there.
- **Expecting open jobs to move with a redraw** — open jobs and tickets keep their department; only new work at a moved site follows it.
- **A site that will not go into an area** — it probably has no pin (its address could not be found exactly). Fix the address on the site, or rely on a postcode / town rule for it.

## Related Areas

- **Setup → Engineers** — engineer roster, skills, login toggles; links toward **Staff Profiles** and **HR Dashboard**.
- **Setup → Add Engineer/Staff** — assign **Departments** checkboxes and **Department (text)** on the **Employment** tab; primary department drives several displays. When departments route work, this is also where a person's **Home** department, **Sees** and **Same as their department** are set.
- **Staff Profiles** — find people whose primary department you need to change before deleting a department.
- **Positions** — job positions, opened from the button beside the page title.
- **Sites** — when departments route work, give a site its department on the site or from the **Sites** list.
- **HR Settings** — leave types, allowances, and wider HR behaviour that complement department structure.
