Part H · Chapter 42 · Capstone: Harbour Mutual acquires Kestrel

42. Stage 5: Who owns what

Weeks eight to nine. Kestrel's data arrived with people who run its systems and nobody who owns it. Give every domain one owner across both companies, classify Kestrel's columns, and show the data protection officer that each role sees only what it needs.

The map with names and locks
Playback speed

The clip shows the six information domains of the merged estate, each with its owner, and the Kestrel data that joins each one: the customers under party, the policies under policy, the claims and the portal's reports under claim, the bookings and reserving workbooks under finance, the reports under performance. Kestrel's two managers appear beside the systems they run, not as owners. Then the locks: the claims handler reads every claim of both companies, the analyst reads both companies' claims without the medical ones, and finance reads the money without the cause. Last, every role's queries run on PostgreSQL and agree with the design.

The situation

Kestrel brings 7 datasets and no owners: its two managers are custodians of the systems they run. Harbour Mutual has one owner for each of its 6 information domains. The data protection officer wants to see who will read the medical claims: 5 of Kestrel's 40 claims are medical.

The access design keeps chapter 22's policy for Harbour Mutual's tables and extends it to Kestrel's: the claims handler reads every claim and customer, the analyst reads the claims without the medical ones and no Kestrel customer, and finance reads the money without the cause. The script below runs on PostgreSQL in your browser, every query as its role.

The roles, grants, row policies and masked view for both companies (PostgreSQL)
CREATE ROLE claims_handler NOLOGIN;
CREATE ROLE analyst NOLOGIN;
CREATE ROLE finance_reporting NOLOGIN;
ALTER TABLE claims ENABLE ROW LEVEL SECURITY;
GRANT SELECT (claim_id, claim_number, policy_id, loss_date, reported_date, cause, status, reserve) ON claims TO claims_handler;
CREATE POLICY claims_handler_claims ON claims FOR SELECT TO claims_handler USING (true);
GRANT SELECT (claim_id, claim_number, policy_id, loss_date, reported_date, cause, status, reserve) ON claims TO analyst;
CREATE POLICY analyst_claims ON claims FOR SELECT TO analyst USING (cause <> 'medical');
GRANT SELECT (claim_id, claim_number, policy_id, loss_date, reported_date, status, reserve) ON claims TO finance_reporting;
CREATE POLICY finance_reporting_claims ON claims FOR SELECT TO finance_reporting USING (true);
ALTER TABLE claim_payments ENABLE ROW LEVEL SECURITY;
GRANT SELECT (payment_id, claim_id, paid_on, amount) ON claim_payments TO claims_handler;
CREATE POLICY claims_handler_claim_payments ON claim_payments FOR SELECT TO claims_handler USING (true);
GRANT SELECT (payment_id, claim_id, paid_on, amount) ON claim_payments TO analyst;
CREATE POLICY analyst_claim_payments ON claim_payments FOR SELECT TO analyst USING (true);
GRANT SELECT (payment_id, claim_id, paid_on, amount) ON claim_payments TO finance_reporting;
CREATE POLICY finance_reporting_claim_payments ON claim_payments FOR SELECT TO finance_reporting USING (true);
ALTER TABLE claim_documents ENABLE ROW LEVEL SECURITY;
GRANT SELECT (document_id, claim_id, doc) ON claim_documents TO claims_handler;
CREATE POLICY claims_handler_claim_documents ON claim_documents FOR SELECT TO claims_handler USING (true);
GRANT SELECT (document_id, claim_id) ON claim_documents TO analyst;
CREATE POLICY analyst_claim_documents ON claim_documents FOR SELECT TO analyst USING (true);
ALTER TABLE customers ENABLE ROW LEVEL SECURITY;
GRANT SELECT (customer_id, region_id, name, birth_date, customer_since, email) ON customers TO claims_handler;
CREATE POLICY claims_handler_customers ON customers FOR SELECT TO claims_handler USING (true);
ALTER TABLE schades ENABLE ROW LEVEL SECURITY;
GRANT SELECT (schade_id, schade_nr, polis_id, schadedatum, meldingsdatum, oorzaak_code, status, reserve_cent, betaald_cent) ON schades TO claims_handler;
CREATE POLICY claims_handler_schades ON schades FOR SELECT TO claims_handler USING (true);
GRANT SELECT (schade_id, schade_nr, polis_id, schadedatum, meldingsdatum, oorzaak_code, status, reserve_cent, betaald_cent) ON schades TO analyst;
CREATE POLICY analyst_schades ON schades FOR SELECT TO analyst USING (oorzaak_code <> 'MED');
GRANT SELECT (schade_id, schade_nr, polis_id, schadedatum, meldingsdatum, status, reserve_cent, betaald_cent) ON schades TO finance_reporting;
CREATE POLICY finance_reporting_schades ON schades FOR SELECT TO finance_reporting USING (true);
ALTER TABLE klanten ENABLE ROW LEVEL SECURITY;
GRANT SELECT (klant_nr, naam, geboortedatum, email, adres, telefoon, bijgewerkt_op) ON klanten TO claims_handler;
CREATE POLICY claims_handler_klanten ON klanten FOR SELECT TO claims_handler USING (true);
CREATE VIEW customers_masked AS SELECT customer_id, region_id, LEFT(name, 1) || '.' AS name, EXTRACT(YEAR FROM birth_date)::int AS birth_year FROM customers;
GRANT SELECT ON customers_masked TO analyst;
Both companies' queries as each role, on PostgreSQL in your browser

PostgreSQL starts in this browser when you press Run.

Each query as each role: what PostgreSQL returned in your browser, and what the lab expects
RoleQueryPGliteExpectedSame
Claims handler Count the claims 60
Claims handler Count the medical claims 4
Claims handler Read an adjuster's document Readable
Claims handler Read the first customer's name Jan Smit
Claims handler Read the first customer through the masked view Permission denied
Claims handler Count Kestrel's claims 40
Claims handler Count Kestrel's medical claims 5
Claims handler Read the first Kestrel customer's name Noor Meijer
Analyst Count the claims 56
Analyst Count the medical claims 0
Analyst Read an adjuster's document Permission denied
Analyst Read the first customer's name Permission denied
Analyst Read the first customer through the masked view J. · 2000
Analyst Count Kestrel's claims 35
Analyst Count Kestrel's medical claims 0
Analyst Read the first Kestrel customer's name Permission denied
Finance Count the claims 60
Finance Count the medical claims Permission denied
Finance Read an adjuster's document Permission denied
Finance Read the first customer's name Permission denied
Finance Read the first customer through the masked view Permission denied
Finance Count Kestrel's claims 40
Finance Count Kestrel's medical claims Permission denied
Finance Read the first Kestrel customer's name Permission denied

A table of twenty-four checks: chapter 22's five queries on Harbour Mutual's tables and three on Kestrel's (count the claims, count the medical claims, read a customer's name), each run as the claims handler, the analyst and finance. For each, what PostgreSQL returned in your browser and what the lab expects from the design. Press Run to start PostgreSQL in the browser; each query runs as its role, and the role is reset straight after.

Try this In the Quality workbench, switch to Kestrel: none of its rules has an owner yet. Give one an owner and see the name beside it.
Remember Kestrel's data takes the owner of the domain it belongs to; the people who run systems stay custodians. Classify by what a column holds, grant each role the least it needs, and check every role on the real database.

Why it matters for Alex

Ownership decides who answers when a figure is wrong and who says yes to a new use of the data. With two owners of one domain, nobody decides; with none, nothing happens. Alex does not own the data; Alex makes sure every domain has one owner the business accepts, before the platform makes the data easy to reach.

The data protection officer signs off the access design, not a promise. Running every role's queries on the real database, and agreeing with the design, is the evidence: the analyst sees 35 of Kestrel's claims, and 0 of them are medical.

Where it goes wrong

  • The custodian as owner. Whoever runs the system knows it best, and still should not decide what its data means or who may use it.
  • Two owners until things settle. Temporary co-ownership lasts for years, and every disagreement goes to a meeting.
  • Access copied from the old company. Kestrel's analysts read everything in its package; the merged design decides again, role by role.
  • Classified once, by name. A free-text column called description can hold an injury. Classify by what the column can hold.

The stakeholders

  1. Agnieszka Lis Chief Financial Officer, Harbour Mutual

    Kestrel's data arrived with people who run its systems and nobody who owns it. Before the platform goes live, every domain needs one owner across both companies, and I want to know who sees the medical claims.

  2. Marta Kowalczyk Data Protection Officer, Harbour Mutual

    Before Kestrel's claims reach the lakehouse, show me who will read the medical claims of both companies and why each role needs what it gets. We classify and grant as chapter 22 sets out.

  3. Willem de Boer Kestrel Operations Director, Kestrel
    Pushback

    I have run Kestrel's package for ten years. Make me the owner of Kestrel's policy data.

  4. Ingrid Vos Kestrel Finance Manager, Kestrel
    Pushback

    Until the two ledgers merge, Kestrel's finance data should keep an owner of its own, beside Agnieszka.

More messages arrive as the stage's checks pass.

The goal

One accountable owner per domain across both companies, every Kestrel column classified, and every role's access checks passing.

This stage gives you the goal; ask for a hint when you need one.

    The stage's outcome

    0 of 4 checks passed. The stage is done when all of them have.

    Your architecture deliverable Your skills record

    Exercises

    The lab checks each one against facts written down in advance, so any answer the brief allows passes. A pass is kept in this browser.

    One owner per domain

    Each line is one of Kestrel's datasets joining the merged estate. Choose who owns it: the person accountable for the information it holds.

    klanten (Kestrel customers)
    polissen (Kestrel policy and claims)
    schades (Kestrel policy and claims)
    meldingen (Kestrel claims portal)
    rpt_schadelast (Kestrel reporting)
    boekingen (Kestrel finance)
    Reservering (Kestrel actuarial)

    Classify Kestrel's columns

    Choose the classification of each Kestrel column under chapter 22's scheme.

    schades.oorzaak_code: Kestrel's loss-cause code; MED marks a medical claim
    meldingen.omschrijving: What the customer wrote about the loss on the portal, injuries included when there are any
    schades.reserve_cent: What Kestrel still expects to pay on the claim, in cents
    klanten.naam: The customer's full name
    klanten.telefoon: The customer's phone number
    schades.status: open, gesloten or afgewezen
    polissen.product_code: AUTO, WOON or REIS, as printed on Kestrel's website and brochures

    Who sees what, across both companies?

    Each query runs as one role under the design above. Choose what the role gets back. The stage's run on PostgreSQL shows the same.

    Claims handler: Count Kestrel's medical claims
    Analyst: Count Kestrel's claims
    Analyst: Count Kestrel's medical claims
    Analyst: Read the first Kestrel customer's name
    Finance: Count Kestrel's medical claims
    Finance: Count Kestrel's claims

    Answer the stakeholders

    Each line is something a stakeholder says as the stage goes on (the thread above). Agree, or push back where the facts say otherwise.

    I have run Kestrel's package for ten years. Make me the owner of Kestrel's policy data.
    Until the two ledgers merge, Kestrel's finance data should keep an owner of its own, beside Agnieszka.
    Kestrel's portal descriptions are written by customers, and some describe their injuries. Treat that column as special category.
    The analysts do not need anyone's medical claims for their trends. Hide Kestrel's medical claims from the analyst role, as Harbour Mutual's already are.
    Finance should see the loss cause on Kestrel's claims as well. It would help them with the reserves.
    Give the analysts Kestrel's customer names for the churn report. They read Harbour Mutual's customer names in full already.

    On Azure

    Checked against Microsoft's documentation on 18 October 2026.

    On Azure, owners, levels and locks each have a place:

    • Microsoft Purview's Unified Catalog records each data product's owner and each domain's stewards; Kestrel's assets move from their own collection into the governance domains once their owners are agreed.
    • Classifications and sensitivity labels from Microsoft Purview mark the columns and the Power BI and Fabric items that hold them, Kestrel's included.
    • Microsoft Entra groups are the three roles, one group each, with people from both companies in them.
    • The lakehouse enforces it: row filters and column masks in Azure Databricks' Unity Catalog, or row-level and column-level security on Fabric's SQL endpoints and Power BI's row-level security for reports.

    The access checks run as part of each release, one query per role, so the evidence is fresh whenever the design changes.

    Take it to work

    Merged ownership and access

    Record who owns each domain after a merger, how each new column is classified, and what each role may read.

    Owners

    • Each domain, its one owner, and its stewards
    • The other company's data that joins it

    Custodians

    • Who runs each system, and what they apply for the owner

    Classification

    • Each new sensitive column and its level
    • The rows that are more sensitive than the rest

    Access

    • Each role, what it reads and what it is refused
    • The checks run on the real database, and when

    Tools in this chapter

    • Quality workbench · Write quality rules, set thresholds, inject defects, and see the scores per dimension and per domain.
    An unhandled error has occurred. Reload 🗙

    Reconnecting…

    Your connection to the Cloud Data Architecture Lab dropped, probably a Wi-Fi blip. Hold on while it reconnects.

    The connection could not be restored. The page will reload in a few seconds.