Design an access management system
I was asked this
No reports yet. Sign in to say where you were asked it.
A system design interview question asked in Snowflake's system design round and at Stripe, last asked Jan 2026. It tests authorization, security and consistency.
Design an access management service that decides who can do what to which resource, across many services. It supports roles, groups and fine-grained permissions on individual resources, answers a check on every request with very low latency, and keeps an auditable record of every change.
Requirements
- Functional: define roles and the permissions they include; assign users and groups to roles on resources; nested groups and resource hierarchies (organization, project, object); a check API "can user U do action A on resource R?"; list what a user can access; audit history of every grant and revoke.
- Non-functional: checks on every request, so latency of a few milliseconds and very high availability; changes, especially revocations, take effect quickly; multi-tenant isolation; scales to many services and resources.
Clarifying questions
- Is the model role-based, relationship-based (like a document shared with a group), attribute-based, or a mix?
- How deep can group nesting and resource hierarchies go?
- How fast must a revocation take effect everywhere?
- What is the check rate, and the ratio of checks to changes?
- Do we need explicit deny rules?
What a strong answer covers
- A data model of relationships or bindings
(subject, relation, resource)with roles expanding to permissions, and how inheritance through groups and hierarchies is evaluated. - A check service that walks or precomputes these relationships, with caching and its consistency cost; a token or version that lets a caller ask for a check at least as fresh as a given change.
- Evaluation placement: a central service, a sidecar or a library with replicated policy data, and the latency and freshness trade-offs.
- Fast revocation through cache invalidation or short cache lifetimes.
- Partitioning by tenant, replication across regions, and behavior when the service is unreachable (fail closed).
- An append-only audit log, admin APIs with their own permissions, and tests for policy changes.
Follow-ups
- A user is removed from a group with access to millions of documents. How fast does it take effect, and how?
- Answer "list every resource this user can read" efficiently.
- Add conditions such as time of day or IP range.
- A service checks thousands of resources per request.
Where it's asked
- Snowflake · System design · Last asked Jan 202660 min · Design discussion
- Stripe
What it tests
authorization · security · consistency
Sign in to see the worked answer
The full answer, chapter by chapter, with what interviewers expect at each level. New accounts get 5 credits: each one unlocks a question for good.
What the labs asked this week
A weekly email of what OpenAI, Anthropic and the other top AI labs asked engineers, round by round.

