Prompt
What should I use for permission-aware search across company data?
Latest observation
For permission-aware search across company data, the best choice is usually a search layer that can enforce document-level access control at query time rather than a plain full-text index.
Good options
-
Elasticsearch / OpenSearch
Best if you need flexible full-text search, filters, ranking, and scale.
Common pattern: store ACLs, groups, org IDs, or security labels in the index and filter results per user at search time. -
Microsoft Graph / SharePoint search
Best if your data mostly lives in Microsoft 365 and you want built-in permission trimming. -
Google Cloud Search / Drive search
Best if you’re in Google Workspace and want permission-aware search out of the box. -
Algolia
Good for fast search UX, but permission-aware search is usually something you implement yourself with filters and secured indices. -
PostgreSQL full-text search + app-level ACL checks
Fine for smaller systems, but usually not ideal for complex enterprise search.
What matters most
You want:
- Index-time security metadata
e.g. user IDs, role IDs, team IDs, tenant IDs, classification tags. - Query-time filtering
Results must be trimmed before they’re returned. - Consistent ACL syncing
Permissions change often, and search indexes can get stale. - Auditing
Important for enterprise compliance.
Recommended default
If you’re building this yourself:
OpenSearch or Elasticsearch with ACL-aware filtering is the most common and flexible choice.
If you’re on an existing ecosystem:
- Microsoft 365 → use Microsoft Search / Graph
- Google Workspace → use Google Cloud Search
- SaaS app search → use Elasticsearch/OpenSearch
If you want, I can also recommend a setup based on your stack, data size, and permission model.