AI Glossary / Data engineering and architecture / Intermediate

Attribute-based access control

Definition

Attribute-based access control, or ABAC, is an approach to authorization that evaluates attributes of the requester, the resource, the requested operation and sometimes the surrounding context against a policy. Access depends on whether the applicable rules permit that request, rather than only on a separately assigned permission for each resource.

What it means

An attribute is a relevant property, such as a user's department, a document's classification or a request's action. A rule might allow members of a project to read documents labeled for that project while denying requests that fail an additional condition.

ABAC describes how authorization decisions are made. Authentication establishes an identity; authorization decides what that identity may do. Correctly identifying a user does not automatically establish permission to read every document.

ABAC and role-based access control can coexist. A role may be one attribute considered by a broader policy. Identify which facts decisions use and how they are maintained.

How it works

A request identifies the subject, resource and operation. The access-control system obtains the attributes required by the relevant policies and evaluates the rules. An enforcement mechanism then applies the decision at the point where the protected operation occurs.

The policies need defined behavior for missing attributes, conflicting rules and evaluation errors. A team should not assume that the same policy text has identical conflict-handling semantics in every product.

Attributes must come from trustworthy sources. If a requester can label their own account as approved or relabel a restricted document as public, an otherwise sensible policy can be undermined. Changes to identity attributes, resource labels and policies therefore need appropriate control and auditability.

Some implementations use governed data tags to apply policies across many objects. Others evaluate richer subject and contextual information. The general ABAC concept does not guarantee that a particular product supports every attribute, action or enforcement point a design might require.

Three practical examples

  • A project repository allows reading a document when the authenticated user's current project membership matches the document's project label.
  • A data platform applies a masking policy to columns carrying an approved sensitive-data tag, subject to its supported policy mechanisms.
  • An internal AI search service filters candidate documents according to the requesting user's attributes and the documents' access policies before generating an answer.

Think of it this way

Think of an event organizer checking several facts on a visitor's pass: organization, session entitlement and the type of activity requested. The decision can depend on the combination, not just whether the visitor possesses a pass.

The analogy is limited because software policies may involve many resources, automated services and rapidly changing attributes. A printed pass may remain unchanged after an entitlement is revoked. Digital systems likewise need a clear strategy for refreshing cached attributes and decisions.

Worked example

Three required conditions

An invented repository policy permits a read only when the requester is active, their project set includes the document's project and the document is approved for internal release. Assume all three conditions are required and missing required information does not grant access.

Mira is active and belongs to projects Blue and Green. Document D1 belongs to Blue and has internal-release approval. Her read request passes all three conditions.

Document D2 belongs to Red, so her request fails the project test even if D2 has release approval. Document D3 belongs to Blue but lacks approval, so it also fails. Being active alone is insufficient.

If Mira leaves Blue, a later decision must use the changed membership according to the system's revocation and caching design. Reusing an old allow decision indefinitely would contradict the intended policy, even though the original decision was correct when made.

Illustrative case study

A fictional consultancy builds an assistant over project documents. Its initial prototype retrieves passages with a shared service account that can read all projects. The assistant is told in its prompt to discuss only material relevant to the user's assignment.

The team replaces that assumption with enforced retrieval controls. Requests carry a verified user context, and candidate passages are checked against project policies before they become model input. It also reviews caches and conversation history so that an earlier privileged answer is not reused for an unrelated requester.

Tests include an employee leaving a project, a document with a missing label and an incorrectly broad service identity. The case distinguishes prompting from enforced access control.

Common misconceptions and mistakes

  • A resource tag automatically protects the resource. A correctly scoped policy and enforcement mechanism must actually use it.
  • ABAC removes the need for identity management. Policies depend on reliable identities and attributes, including timely changes.
  • An allowed read request implies permission to edit or export. Policies evaluate operations, and permissions may differ by action.

Business use

ABAC can make access policies easier to apply consistently across growing collections of resources. A rule based on governed attributes can cover newly classified assets without a separate manual grant for each one.

Attribute quality and policy governance remain essential. Name the owners of classifications and identity facts, define how quickly changes must take effect and test both allowed and denied requests. Record enough decision context to investigate why access was granted without placing unnecessary sensitive values in logs.

For AI applications, check every route by which protected information reaches the model or the user: retrieval, tools, exports, caches and stored conversation material. Use actual enforcement tied to the intended identity. An assistant's natural-language explanation of a policy is not evidence that the underlying request was authorized.

People also ask

Does ABAC always replace roles?

No. Roles can remain useful and may be inputs to an attribute-based policy.

Can environmental conditions matter?

Yes. The model can include contextual conditions when they are supported and relevant to the policy.

What if an attribute is wrong?

The decision may be wrong too. Attribute provenance, accuracy and controlled updates are essential parts of the design.

Check your understanding

A user belongs to a document's project, but the policy also requires release approval and that attribute is missing. Under the worked example's rules, should the request be allowed?

Answer: No. All three conditions are required, and missing required information does not grant access in that policy.

Related terms

  • Least privilege
  • Authorisation
  • authentication
  • role-based access control
  • policy enforcement
  • governed tag
  • identity attribute
  • retrieval permissions

Learn next

Read policy decision and enforcement concepts. Write one small access rule, then test it with a missing attribute, a revoked membership and a different requested operation before considering a wider rollout.

More in Data engineering and architecture

  • Atomicity (database systems) - Atomicity in database systems is the property that a transaction's covered changes succeed as one unit or are discarded as one unit.
  • Attribute Preservation Property - The attribute preservation property requires the relation schemas in a decomposition to contain, collectively, every attribute of the original relation schema.
  • Attribute - value system - An attribute - value system represents a collection of objects through named attributes and their values.
  • Augmentation Rule - The augmentation rule is a basic inference rule for functional dependencies in relational database theory.
  • Author name disambiguation - Author name disambiguation identifies which author mentions in publication records refer to the same person.
  • Autocommit - Autocommit is a database connection or session mode in which successful statements are normally committed automatically, without the application separately...

Sources

NIST SP 800-162, Guide to Attribute Based Access Control Definition and Considerations: https://csrc.nist.gov/pubs/sp/800/162/upd2/final. Primary definition and guidance.

Databricks, Core concepts for ABAC: https://docs.databricks.com/aws/en/data-governance/unity-catalog/abac/core-concepts. Primary example of governed-tag policies and tag administration.

Databricks, Governed tags: https://docs.databricks.com/aws/en/admin/governed-tags/. Primary documentation of managed attribute values. The repository policy and consultancy case are original illustrations, not product configuration instructions.

Previous: Attenuation Next: Attribute-based extraction

  • Home
  • Daily AI Updates
  • Blog
  • AIFBL Academy
  • AI Glossary
  • Products and Tools
  • Store
  • Free CFO AI Prompt Pack
  • About Shihan Sheriff
  • Privacy Policy
  • Terms of Use
  • Refund Policy
  • Cookie Policy
  • Earnings Disclaimer