# Client groups, teams and the role matrix

> Decide which members of your firm reach which clients, what a role may do, and what the client's own choice and support staff can see.

Source: /help/en/firm/client-groups-and-access

Your firm reaches a client's books only through **client groups**. A client belongs to one or more groups; a **team** of firm members is linked to a group with a role; a member opens a client only when one of their teams is linked to one of the client's groups. Owners and admins of the firm reach every connected client.

This page is for firms on the Professional plan and above (the partner workspace). Where to find it: **Settings → Firm → Groups and teams**.

## What you start with

When the partner workspace is switched on, Alya Books creates two things for your firm so that nothing changes on day one:

| Created for you | Holds | Linked as |
|---|---|---|
| The group **All clients** | every client, and every new client as it is added | — |
| The team **Everyone** | every active member of the firm, and every new member | **Accountant** in *All clients* |

So every member reaches every client, exactly as before. You narrow access by adding groups and teams, and by taking clients out of *All clients* or members out of *Everyone*.

## Narrow access in four steps

1. **Settings → Firm → Groups and teams → New group.** Name it (for example *Dubai office*), pick its clients with the search box, and link a team with a role. Save.
2. **New team.** Name it (*Dubai desk*) and tick its members.
3. Open the group *All clients* and remove the clients that only the new group should reach, or open the team *Everyone* and untick the members that should only reach their own group.
4. Check it: sign in as a member of the team (or ask them to) and open **Clients**. Only the clients of their groups are listed; a client outside them is not found by search, by its web address, by the API or by an assistant.

A client in no group is reachable by the firm's owners and admins only. A member in no team reaches nothing, however their firm role reads.

## The three roles a team can hold in a group

| Role in the group | In the client's books |
|---|---|
| **Accountant** | Prepares and posts, closes periods, changes accounting settings (the chart, tax rates, journals, close and report settings); never moves money, never administers |
| **Approver** | Reads and approves what is sent for approval |
| **Viewer** | Reads only |

Two caps apply on top of the group role:

- **The firm member's own role.** A member who is an approver or a viewer *of the firm* only ever views a client, whatever their teams are linked as.
- **The access the client chose.** When the client linked your firm as **Viewer** (in their **Settings → Team → Accountant access**), everyone in your firm reads that client and nothing more. Only the client changes that.

A member who reaches a client through two groups gets the stronger role of the two.

## The role matrix: what a role may do

Every organisation role maps to classes of action. The matrix is shown at the bottom of **Groups and teams** and reads the same for every organisation on Alya Books; platform support changes it, not a firm.

| Class | Examples | Owner | Admin | Accountant | Approver | Viewer |
|---|---|---|---|---|---|---|
| Read | lists, reports, the audit log | ✓ | ✓ | ✓ | ✓ | ✓ |
| Prepare | drafts, bank proposals, client records in the firm | ✓ | ✓ | ✓ | — | — |
| Post | posting entries and documents | ✓ | ✓ | ✓ | — | — |
| Approve | deciding an approval request | ✓ | ✓ | by the organisation's setting | ✓ | — |
| Close periods | lock dates, closing and reopening a fiscal year, deleting a close period | ✓ | ✓ | ✓ | — | — |
| Accounting settings | the ledger, close and corporate tax settings, approval tiers, resetting the chart | ✓ | ✓ | ✓ | — | — |
| **Money movement** | bill payment batches, reimbursements, customer refunds, a bank account's payee details (IBAN), payment gateway credentials, the subscription and its card (recording a transfer that is already on the bank statement is posting work) | ✓ | ✓ | — | — | — |
| **Administration** | members and invitations, API keys, webhooks, AI assistant access, connections, the company's identity | ✓ | ✓ | — | — | — |

An accountant is an admin minus money movement and administration. A refused action answers **forbidden_action** with the class it needed, in the app, over the API and to an assistant alike. A firm member in a client is at most an accountant, so the client's team, bank details, keys and money always stay with the client.

An accountant with the **API keys** or **Webhooks** permission ticked on their member card (**Settings → Team**) keeps that one permission; it sits above the matrix for that person only.

## What the audit log shows

**Settings → Firm → Audit log** lists the firm's own changes and what each member did inside each client the signed-in member can open, with the organisation, who acted (a person, an API key, an assistant, an agent, the system or support staff), the acting firm member and whom they acted for. Filter by organisation, member, kind of actor, action, dates or a search. A member outside a client's groups sees none of that client's rows here either.

## What support staff see

Platform support never becomes a member of your firm or of a client, and is never in a team. Under a support session into your firm (see [Support access](/help/en/account-and-setup/support-access)) staff read the firm's own records, including the groups and teams, and not the clients' books; a session into a client reads or, in read-write mode, changes that client as staff, and every such change names the staff member and the session in the audit log.

## How your clients see your firm

**Settings → Firm → Branding** sets what your clients see of your firm on the client portal, in the emails they receive from you and on the covers of the packs you deliver: your **logo** (an image from your document hub), your **accent colour** and the **name shown to clients** in English and Arabic (empty keeps the firm's legal name). The Alya Books theme stays underneath: only the accent and the logo are yours, so every portal keeps the same layout, type and status colours.

Where it shows today: inside a connected client's books, a strip under the top bar carries your logo, the name shown to clients and your accent as its rule ("Your accounts are looked after by …"), for the client's own members and for your members working inside the client alike; and every email the client's organisation sends to its customers (invoices, reminders, pay links, statements, remittance advice) carries the same logo, name and accent above the message. The portal and the pack covers follow with their milestones.

The accent must read against the theme's background at 4.5:1; the page shows the ratio as you type, and a save with a lower ratio is refused (`brand_contrast_low`) with the ratio reached. Owners and admins of the firm change the branding; every member sees it. A client whose firm has set nothing sees the platform's look with the firm's legal name. Over the API, `GET /firm/branding` and `PUT /firm/branding` read and save it, and an assistant reads it with `get_firm_branding`.

## Good to know

- Groups decide **access**, not billing: a client is charged by its connection to the firm, not by its groups.
- The group *All clients* and the team *Everyone* cannot be deleted; a group with teams linked to it is deleted after the links are removed, and a team is deleted after it is unlinked from every group.
- Connecting a new client adds it to *All clients*; adding a new member adds them to *Everyone*. Move them afterwards if the firm has narrowed access.
- Through the API, a key created by a member reaches the clients that member's groups admit; the `X-Organization-Id` header names the client (docs.alyabooks.ai). A key minted through the API itself, which names no creator, keeps every connected client.

## Related

- [The client list, stages, tags and custom fields](/help/en/firm/client-list-tags-and-dashboard)
- [Work in a client's account](/help/en/account-and-setup/work-in-client-accounts)
- [Accountant access to your organization](/help/en/account-and-setup/accountant-access) (the client's side)
- [Users and roles](/help/en/account-and-setup/users-and-roles)
