neesh Inc.
AI SecurityEnterprise AIAccess Control

Permission-Aware AI

Most AI chatbots treat all knowledge as equal. In real businesses, the answer depends on who's asking — not just what they're asking.

Most AI demos ignore a fundamental business reality: not everyone should see everything. A support agent asking “what’s our revenue?” should get a very different response than the CEO asking the same question.


The Demo vs Reality Gap

Every RAG demo shows the same thing: upload your documents, ask a question, get an answer. It looks impressive in a boardroom. In production, it’s a liability.

An unrestricted chatbot with access to all company documents — HR files, financial reports, client contracts, legal memos — means any employee can query any of it. That’s not a knowledge base. That’s a compliance nightmare with a chat interface.

The demo works because everyone in the demo is the same person. Real businesses are not built that way.


How It Works

The architecture is straightforward. The complexity is in doing it right.

1

User Asks Question

Query received from authenticated user session

2

Identify Permission Groups

Resolve user's roles and access levels from your identity provider

3

Filter Document Search

Retrieval is scoped to permitted documents only — enforced at the database level

4

Generate Answer

LLM synthesises a response from the allowed sources only

5

Respond with Citations

Answer returned with references to documents the user already has access to

The critical detail: the filtering happens at the database level — a SQL WHERE clause on the document metadata, not an application-layer check. This means it cannot be bypassed by a clever prompt. The documents simply are not retrieved. The model never sees them. There is nothing to leak.


The Graceful Refusal

How the AI refuses matters as much as whether it refuses. A bad refusal creates a worse user experience than no AI at all.

Wrong way
"I don't know." — This implies the information doesn't exist. The user walks away with a false picture of what the business knows. They may stop trusting the system entirely, or assume documentation is missing.
Right way
"I don't have access to information about that. You may need to ask someone with the appropriate access level." — Honest about the boundary. Confirms the information likely exists. Tells the user exactly what to do next.

The wrong refusal is a confidence problem. The right refusal is a trust builder. Users learn that when the AI does answer, it’s answering from within its lane — not guessing or over-reaching.


Real Scenarios

Different roles, same questions. Watch how the responses change.


Why This Matters

This is not an edge case concern. It lands directly in four areas that already matter to your legal and compliance teams.

Compliance. SOC 2 Type II and GDPR both require demonstrable access controls on personal and sensitive data. “Our chatbot only shows you what you’re allowed to see” is a requirement, not a nice-to-have. Document it, test it, audit it.

Legal liability. If an employee accesses salary data, client pricing, or litigation strategy through an AI interface — and that access was not authorised — the liability question is yours. Permission-aware retrieval is the control that closes that gap.

Information compartmentalisation. Organisations exist the way they do because information flows were designed deliberately. Sales doesn’t see engineering roadmaps. HR doesn’t discuss board matters with department heads. Your AI shouldn’t undo a decade of information architecture in the name of helpfulness.

Trust. An AI that stays in its lane gets used. One that occasionally returns information it shouldn’t have surfaced — even once — gets reported, restricted, or abandoned. Trust is built slowly and lost immediately.

Without permission-awareness, an enterprise AI knowledge base has exactly two states: locked down to public information only (safe but useless), or open to everything (useful but dangerous). Neither is acceptable at scale.

Permission-aware AI isn’t a feature. It’s the difference between a demo that impresses and a product that deploys.

Need AI that respects your org chart?

Book Free Assessment