Design Microsoft 365 Enterprise Search With Per-Document Permissions
Last updated: November 29, 2026
Quick Overview
Design search across SharePoint, OneDrive, Outlook and Teams for a large enterprise tenant so that every result a user sees is one they are allowed to open, with results updated soon after permissions change.
Microsoft
November 29, 20260
0
0 solved
Design search across SharePoint, OneDrive, Outlook and Teams for a large enterprise tenant so that every result a user sees is one they are allowed to open, with results updated soon after permissions change.
Microsoft Search and Copilot grounding both rely on permission-trimmed retrieval, and interviewers use this to see if candidates treat security trimming as a first-class index concern rather than a post-filter. They also check freshness of ACL changes and tenant isolation.
What the Interviewer Expects
- Stores ACLs in the index and filters at query time, not after retrieval
- Expands group membership efficiently
- Handles permission changes without reindexing content
- Partitions indexes per tenant
- Combines lexical and semantic retrieval with ranking signals like recency and people affinity
- Discusses latency targets
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 group with access to 2 million documents. How fast is that reflected, and how?
- How do you avoid leaking existence of documents through counts or suggestions?
- How would you add vector search for Copilot without breaking trimming?
- What do you do for a sharing link that grants access to 'anyone in the org'?
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
Content: documents, emails, chats, sites; tens of millions of items per large tenant. Query latency under 500 ms. A user must never see a result they cannot open (hard requirement). Permission revocat...
High-Level Design
Content sources publish change events to a crawler/indexer per tenant. The indexer extracts text, computes embeddings, and writes documents into a tenant-partitioned index with fields includin...