Design Permission-Aware Enterprise Search Over SaaS Connectors
Last updated: November 29, 2026
Quick Overview
Design a search and answer system that indexes content from Confluence, SharePoint, Google Drive, ServiceNow knowledge and Slack for each customer and only ever returns or summarizes documents the asking employee is allowed to see.
Moveworks
November 29, 20260
0
0 solved
Design a search and answer system that indexes content from Confluence, SharePoint, Google Drive, ServiceNow knowledge and Slack for each customer and only ever returns or summarizes documents the asking employee is allowed to see.
Enterprise search is a core product for an employee AI assistant, and leaking a salary spreadsheet or an HR case through a generated answer is the failure that ends a customer relationship. The interviewer expects a clear stance on ACL enforcement (early vs late binding), freshness of permissions, and how retrieval feeds an LLM without bypassing security.
What the Interviewer Expects
- Defines per-tenant isolation and the scale of documents and queries
- Designs connectors with incremental sync for both content and ACLs
- Chooses and justifies early binding (ACL in index) with a late-binding check for sensitive results
- Combines keyword and vector retrieval with reranking
- Ensures the LLM only sees post-filter chunks and cites them
- Handles permission changes and deletions within a stated staleness bound
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- A user is removed from a SharePoint group; how quickly is that reflected and how do you prove it?
- How do you handle sources whose ACL model is not expressible as groups (Slack private channels, ServiceNow ACL scripts)?
- How would you evaluate retrieval quality per tenant without reading customer data?
- How do you keep cost manageable when re-embedding after a model upgrade?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: index many sources per tenant, answer natural-language queries in chat with citations, respect source permissions exactly. Non-functional: hundreds of tenants, up to ~100M chunks for the l...
High-Level Design
Connectors (one per source type) run as workers that poll change APIs or receive webhooks, emitting content events and ACL events to a per-tenant queue. An ingestion pipeline chunks, embeds and writes...