Identity and Access Control System Design: Balancing Universality and Boundaries
This article explains why identity should be modeled as a set of dynamic relationships rather than a static field. It separates six core objects (principal, qualification, right, affiliation, jurisdiction, and audit), describes a layered model, and sets out five engineering principles: default deny with explicit authorization, policy separated from code, explicit ownership and jurisdiction, dual-track migration, and observability with auditability. It closes with an illustrative policy example and a phased rollout and governance approach.
In identity and access control projects, a common mistake is treating identity as a static field. Adding a type column to a user table or a role claim to a token can make identity modeling seem finished. In a real system, however, identity is not an isolated attribute. It is a set of dynamic relationships: who is recognized as a principal, what qualifications that principal holds, which rights those qualifications unlock, which organizational boundary those rights apply within, and who has jurisdiction and how disputes are audited when they arise.
The history of institutional change offers a useful lesson. The shift of identity from subordinate status to rights-bearing subject was not a simple field rename. It was a full restructuring of rights and obligations, social belonging, and jurisdictional boundaries. Technical systems work the same way. A unified identity model that pursues only full integration tends to ignore business boundaries. A model that stresses complete isolation creates duplicate work and a fragmented user experience. The core task of identity and access systems is therefore not to eliminate this tension. It is to engineer the tension, make it strategic, and make it auditable.
1. Define Six Core Modeling Objects
The first step in identity system design is to separate concepts that are often mixed together. Establish at least six types of objects: principal, qualification, right, affiliation, jurisdiction, and audit.
- Principal: the party making a request. A principal can be a natural person, a service account, a device, or an organization.
- Qualification: the conditions under which a principal is recognized, such as account status, identity verification status, active employment status, or tenant membership.
- Right: the set of actions a principal can perform, such as read, write, delete, or approve.
- Affiliation: the relationship between a principal and organizations, projects, or resources.
- Jurisdiction: the boundary within which a policy takes effect, such as the tenant, organization, project, or resource level.
- Audit: a record of who performed which action on which resource, under which conditions, and with what result.
These six objects should not all be stored in a single user table. A better approach is layered modeling. The authentication layer answers whether the requester is who they claim to be. The authorization layer decides what they can do. The affiliation layer decides who owns what. The jurisdiction layer decides where a rule is valid. The audit layer makes events explainable after the fact. With this layering, the unified identity model can stay stable, while business boundaries expand through policies and attributes without frequent changes to the underlying table structure.
2. The Tension Comes from Conflicting Goals, Not Weak Modeling
Identity systems have long oscillated between the ideal of universality and the practice of exclusion. The root cause is usually not a lack of technical capability. It is that the goals themselves conflict. The platform team wants one login that works everywhere, which lowers onboarding costs. Business teams want clear boundaries and controlled risk, with no overreach. The security team wants default deny and least privilege. Operations teams want smooth processes with few interruptions for users. Compliance and audit teams require traceability and explainability. All of these goals are reasonable, but no single role model can satisfy them at once.
For this reason, do not promise a single role that works everywhere. A more reliable strategy has four parts. Use a unified principal identifier and identity directory to guarantee recognizability. Use attributes and policies to express differentiated authorization. Use jurisdiction to limit the scope where each policy applies. Use audit logs to make decisions explainable. What is unified is the identity foundation, not every business rule. What is isolated is the policy boundary, not the user data.
3. Five Engineering Principles
First, default to least privilege and explicit authorization. Default deny should be built into the order of policy evaluation. First check the authentication state and the principal’s qualifications. Then match the resource and action. Finally, check affiliation, jurisdiction, and contextual conditions. Any request that matches no rule should be denied, and the reason for denial should be logged.
Second, separate policy from code. Move authorization rules out of business code and into policy configurations that are versioned, reviewed, and testable. A policy should state which principal can perform which action on which resource, under which conditions. These rules should not be scattered across if-else branches in multiple services. Policy changes need gradual rollout, rollback capability, and audit records, so that one configuration error cannot cause broad privilege escalation or service denial.
Third, model affiliation and jurisdiction explicitly. Many permission problems come from unclear boundaries, not from wrong roles. Does a resource belong to an individual, a project, or an organization? When teams collaborate across tenants, whose rules apply? In which jurisdiction is an approval chain valid? Put owner, tenant, project, and region fields in resource metadata, and reference them explicitly in policies instead of inferring them.
Fourth, run a dual-track period during migration. Existing systems often have old roles, legacy permission codes, and new policies at the same time. A direct cutover is risky. Run the new policies in observation mode first and compare their results with the old ones. Require manual approval or secondary confirmation for high-risk actions. Expand traffic gradually and keep a rollback switch. Migration does not mean deleting the old model in one step. It means letting the old and new models coexist for a period in a way that remains explainable.
Fifth, build in observability and auditability. An identity system needs to record authentication events, authorization decisions, policy versions, changes to principal attributes, and administrator actions. Logging, monitoring and alerting, and audit storage should be planned early as shared infrastructure. Key metrics include abnormal fluctuations in denial rates, the distribution of policy matches, trends in unauthorized access attempts, approval duration for sensitive actions, and the share of cross-boundary access. Without observability, a permission system cannot prove that it works as intended.
4. An Illustrative Policy Model
The following example is independent of any specific product. It shows how subject attributes, resource ownership, and contextual conditions combine. It illustrates the expression format only and does not represent any particular interface or parameter.
# Illustrative policy: document read authorizationpolicy: document_read_accesssubject:principal_type: userattributes:employment_status: activedepartment: financeresource:type: documentattributes:sensitivity: internalowner_org: financeaction: readcondition:- subject.employment_status == "active"- subject.department == resource.owner_org- context.network_zone in ["office", "managed_vpn"]effect: allow
The corresponding evaluation flow can be abstracted as follows:
evaluate(principal, resource, action, context):1. Verify that the principal is authenticated and its status is valid2. Load principal attributes, resource ownership, and jurisdiction boundaries3. Match applicable policies, and process explicit denies first by priority4. Check condition expressions and contextual constraints5. Return allow or deny, and record the decision basis and policy version
The key to this model is the order, not the syntax. Authentication and qualifications come first, then authorization and conditions, and audit comes last. An explicit deny should take precedence over an allow, so that a policy conflict does not result in a default allow. Each evaluation result should be able to answer why a request was allowed or denied. Otherwise, troubleshooting costs rise quickly.
5. Rollout Path and Governance
Implementation can proceed in four steps. First, inventory principals and resource catalogs. Define identifiers, ownership, and lifecycles so that the same principal does not end up with multiple IDs. Second, build a permission matrix that labels high-frequency, sensitive, and cross-boundary actions separately, and prioritize high-risk paths. Third, pilot policy-based authorization in one or two business domains. Compare old and new results in observation mode, and verify that denial reasons and audit fields are complete. Fourth, establish policy review, gradual change rollout, periodic re-certification, and anomaly alerting, so that identity governance becomes part of the daily development process.
Governance also needs clear responsibilities. Business teams define resource ownership and the meaning of each action. The security team defines baseline policies and high-risk rules. The platform team maintains the identity foundation and the policy enforcement path. The audit team focuses on record-keeping and review. An identity system cannot reach absolute correctness in one step. Through continuous governance, however, each authorization decision can have a documented basis, each change to a boundary can be recorded, and each migration can be rolled back.
Conclusion
Designing identity and access systems is essentially about building an explainable engineering order between the ideal of universality and the practice of exclusion. A unified identity foundation, layered modeling, policy-based authorization, explicit jurisdiction, and auditable governance make that order practical and able to evolve. Acknowledging the tension and managing it with engineering methods is more reliable than pursuing a single “universal role model.”
