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
System Design
Software Engineer
Microsoft
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

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
Security trimming
Inverted index
Group expansion
ACL propagation
Hybrid retrieval
Tenant isolation
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. 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 Problems
Sample 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...


Submit Your Answer
Markdown supported