# One shared AI memory for a team, without the leaks

> A workflow for small-team leads: set up one shared AI memory with scoped roles, a leak test you run yourself, and an offboarding step that works.

Canonical page: https://www.greatarrow.ai/guides/one-shared-ai-memory-for-a-team-without-the-leaks · updated 2026-11-23

## The problem: a pooled memory with no map of who can read what

You pooled the memory because re-explaining the company to every assistant was eating hours. It worked. Then someone asked a routine question about a client and the answer quoted a thread from the founder's private inbox.

Nobody did anything wrong. **A pooled memory does not know whose a fact is unless you tell it.** Retrieval ranks by relevance, not by who should see the result, so anything the index can reach is a candidate answer for anyone who can ask.

There are two ways this goes bad, and they need different fixes. Over-sharing is the obvious one: a private fact surfaces for the wrong person. Over-writing is quieter. Junk, or a credential someone pasted into a chat, lands in the shared pool and becomes searchable by everyone. A key pasted into a chat can be stored, indexed and later returned by a search.

This is the last post in the series, so it assumes the groundwork exists and gives you the workflow. It does not re-explain how access decisions are made. That lives in [Who can see what, when your AI can see everything](/guides/who-can-see-what-when-your-ai-can-see-everything), and you should read it before the roles step below if you have not.

## Decide what is shared before you connect anything

Before any OAuth screen, sort every source into one of three buckets: shared by default, restricted to named people, or personal and never pooled. Put it on one page.

A workable first pass: the shared drive folder for current projects and the team channel go in the shared bucket. Finance exports and anything with salary or contract terms are restricted. Individual inboxes and direct messages are personal until a person decides otherwise.

The point of the page is to have an answer when someone asks why the assistant knew something. Without it, you are reconstructing intent after the fact.

There is a trade-off. More buckets mean more friction, and a team of two people who already see everything of each other's does not need a restricted tier. Add the bucket when the first real case appears, not before. The reason to bother at all is the one [OWASP's list of LLM application risks](https://owasp.org/www-project-top-10-for-large-language-model-applications/) keeps returning to: a model will repeat what it can reach, including things it should not.

## Map people to roles, and keep the roles few

Now turn the buckets into roles. A handful is enough: someone who administers, members who work in the shared bucket, and a restricted role for contractors or anyone scoped to one project.

Great Arrow lists role-scoped team access among its controls, so you decide who sees what. Whatever tool you use, the property to demand is the same: the role decides what retrieval may return, before ranking, not after.

Two habits keep this honest. Grant to roles rather than to individuals, so that a change of job is a role change and not a hunt through exceptions. And give contractors the narrowest scope that lets them work, then widen it when they ask. Asking is cheap. Un-leaking is not.

## Connect sources with the narrowest account that works

The account you connect decides what enters the pool. Connect a shared mailbox rather than a founder's personal one. Connect the project folder rather than the whole drive. If a source cannot be connected narrowly, leave it personal.

This is the step where most accidental sharing happens, because connecting a source feels like setup, not like a disclosure decision. Treat it as the decision it is. The guides on [connecting Slack to your assistant](/guides/connect-slack-to-your-ai-assistant) and [connecting Gmail](/guides/connect-gmail-to-claude) cover the mechanics. Your bucket page tells you which accounts to use.

## Test the wall yourself, and ask what enabled means

A policy that says people only see their own data is a promise. You want a test.

Plant a canary: a unique nonsense fact, say a made-up project codename and budget, stored in the restricted scope. Then, from a member account that should not have access, ask for it three ways: directly, paraphrased, and indirectly through a neighbouring question. The correct result each time is a gap, an honest I do not know, not a confident answer. Then ask from an authorised account and confirm the answer arrives with a citation. Run the whole thing again after every role change.

Then prove the test can fail. Loosen the scope on purpose, run the canary, and watch it go red. A guard nobody has seen fail is a guard you are assuming works.

Also ask your vendor a harder question than whether row-level security is on. Enabled and enforced are different properties. The [PostgreSQL documentation](https://www.postgresql.org/docs/current/ddl-rowsecurity.html) notes that superusers and roles with the bypass attribute skip row security, and that table owners normally do too. A policy can exist on every table and still not evaluate for the role an application uses.

So the questions to put to any shared-memory vendor are: which role does the application connect as, and where in code can you point to the check that stops one member reading another's restricted fact?

## Keep secrets and junk out at the write path

Read-side walls do not help if the wrong thing was written in the first place. Two failures are worth planning for.

The first is credentials. People paste keys into chats, and an assistant echoes them. Whatever you use, look for one choke point, not a filter per integration, and look for quarantine, because a stripped key still has to be rotated.

The second is anything the platform writes that nobody asked for, such as status messages saved as if they were facts. The memory contains what was written, not what you intended. Skim your own workspace for rows nobody on the team recognises.

## Make the audit trail something you can read

When someone asks what the assistant disclosed, and to whom, you want a log, and you want to know when the log is broken.

The failure to avoid is the silent one: the audit write fails, the answer goes out anyway, and the log shows a clean record with a hole in it. Ask any vendor what happens when an audit write fails, and whether you would be able to tell.

On your side, decide who reads the log and how often. A log nobody opens is the same as no log.

## Keep a human on anything that leaves, and plan the exit

Shared memory makes drafting easy, and drafts are where the leak becomes external. A person approves anything that goes to a client or a vendor. Automation proposes, and a human decides. Make that a team rule, not a setting someone can forget.

Then plan offboarding before you need it. When someone leaves, remove their role first. Then review what their connected sources contributed. Then export what you need. Great Arrow lists one-click data export, AES-256 encryption and bring-your-own-key among its controls, and the useful test is whether you can actually run the export once, today, while nobody is leaving.

One more honest limit. Role scoping inside one shared workspace is the right choice for a small team that wants speed. It is the wrong choice if a contract or regulator wants your data physically separate. That is a choice between a dedicated stack and a shared tenant, and it is a purchase decision, not a configuration one.

## A short weekly review

Keep it small enough that it happens:

- Run the canary from a member and from a restricted account.
- Look at new connections and role changes since last week.
- Skim recent writes for rows nobody recognises.
- Read the questions the memory could not answer. Those gaps usually mean a missing source, not a broken wall.

If the canary fails, stop connecting things until you know why. You can add sources again later, but a leak cannot be taken back.

## Questions

### Do we need a separate workspace per client, or is role scoping enough?

For most small teams, role scoping inside one workspace is enough. If a contract or regulator requires physical separation, choose a dedicated deployment instead. That means a dedicated stack rather than a tenant in a shared database.

### What should the assistant do when someone asks about something they cannot see?

It should say it does not know, or that it has no accessible source. It should not guess, and ideally it should not confirm that a restricted fact exists. Your canary test should check exactly this behaviour.

### How often should we run the leak test?

Run it after every role change and every new connection, then on a regular weekly pass. A wall that passed once says nothing about the wall after you changed the roles.

### Is row-level security enough on its own?

No. Enabled is not the same as enforced. If the application connects as a role that bypasses row-level security, the policies never evaluate for app traffic. Ask which role the application connects as and where the check lives in code.

### What do we do when someone leaves the team?

Remove their role first, then review what their connected sources contributed to the shared memory, then export anything you need. Do it in that order so access ends before you start cleaning up.
