Feature Requests

Role-Based Data Access Controls

M
Marcos AlcozerinFeature Requests
8 months ago

Restrict what data each user can see through Kai based on their role and organizational assignment, ensuring users only access data they are authorized to view.

Problem

Today, any authenticated user in a Kai organization can ask about any data the agent has access to. A high school teacher can ask about middle school attendance. A principal at one school can pull data for another school. Outside of the semantic layer, there are no guardrails that limit what data a user can retrieve through conversation.

This is a security and data governance gap. Districts have existing policies about who can see what — a teacher should see data for their school, not the entire district. A school leader should see only their school's data. These boundaries exist in other district tools, and users expect them in Kai too.

Without access controls, districts with strict data governance policies may be unable to adopt Kai, or may limit rollout to only district-level administrators — defeating the purpose of making data accessible to teachers and school leaders.

Proposed Solution

Data access is governed by rules that restrict what each user can query based on their role and organizational assignment (school, grade level, department, etc.).

  • Kai defines access rules that map roles and assignments to data boundaries (e.g., "Teachers can only see data from their assigned school")

  • When a user asks a question, Kai enforces these boundaries — queries are automatically filtered to only return data the user is authorized to see

  • If a user asks for data outside their access, Kai responds with a clear, helpful message (e.g., "You don't have access to data from Jefferson Middle School. I can help you with data from Lincoln High School.")

  • Rules apply consistently regardless of how the question is phrased — a user cannot bypass restrictions through creative prompting

User Stories

  • As a principal, I expect that when I use Kai, I can only see data for my building — and I trust that other principals cannot see mine.

  • As a teacher, I should not be able to access data from schools I'm not assigned to, even if I ask for it directly.

Success Criteria

  • A teacher assigned to Lincoln High School cannot retrieve data from Jefferson Middle School through any prompt

  • A principal sees only their school's data; a district admin sees all schools

  • When a user requests data outside their access, Kai returns a clear denial message rather than silently filtering or returning empty results

  • Access rules cannot be bypassed through prompt engineering or creative question phrasing

Priority Context

Data governance is a prerequisite for broad district adoption. Many districts will not roll Kai out beyond a small admin group without confidence that data boundaries are enforced.

This feature is distinct from — but complementary to — user-aware prompts. User awareness helps Kai default to the right scope so users don't have to over-specify questions. Access controls enforce boundaries so users cannot see data they shouldn't — even if they ask for it explicitly. Both use similar user attributes (role, school assignment) but serve different purposes: user awareness is about relevance, access controls are about security. A teacher with user awareness gets their school's attendance by default; a teacher with access controls is prevented from seeing another school's attendance.

Open Questions

  • For the Kai engineering team: Where should access rules be enforced — at the agent/prompt level, at the BigQuery query level (row-level security), or both?

  • What granularity do districts need? School-level is the obvious starting point, but some may need grade-level or department-level restrictions

  • How do access rules interact with data that spans schools (e.g., district-wide aggregates, transfer students)?

  • How are access rules managed as staff move between schools mid-year?

Platform

This feature is Kai web app specific, and would not be available for those using Kai through Gemini Enterprise.

  1. In Review
  2. Planned
  3. In Progress
  4. Completed
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...