Skip to content
Preptima
hardConceptDesignMidSeniorStaff

How do you enforce per-user permissions in a retrieval system?

6 min readUpdated 2026-08-15

Answer

Short answer

Carry the authorised principal set on every chunk and pass the user's principals into the search as a filter, so the candidate set is legal before ranking. Filtering after retrieval leaks through counts and gaps, and destroys recall for the users with the narrowest access.

Was this answer helpful?

Likely follow-ups

  • A folder containing sixty thousand documents is reshared. What does your ACL representation cost you?
  • How do you keep filtered approximate search from losing recall when the filter is highly selective?
  • Where do deny rules live, given that a set-overlap filter cannot express them?
  • How would you test that a user can never retrieve a document they cannot open in the source system?

Related questions

Related Topics