← Questions

Design an access management system

0
StripeSnowflakeSystem designLast asked Jan 2026

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

What it tests

authorization · security · consistency

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing