ArticleslgStudy

computer science

XACML

XACML is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand XACML rather than just read about it. In short: The eXtensible Access Control Markup Language (XACML) is an XML-based standard markup language for specifying access control policies. The standard, published by OASIS, defines a declarative, fine-grained, attribute-based access control policy language, an architecture, and a processing model describing how to evaluate access requests according to the rules defined in policies.

XACML — main illustration
XACML — illustration

Key takeaways

  • XACML belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect XACML to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of XACML from memory before moving on to harder problems.

Reference excerpt

The eXtensible Access Control Markup Language (XACML) is an XML-based standard markup language for specifying access control policies. The standard, published by OASIS, defines a declarative, fine-grained, attribute-based access control policy language, an architecture, and a processing model describing how to evaluate access requests according to the rules defined in policies. XACML is primarily an attribute-based access control policy language, but it also defines syntaxes for the requests sent by the Policy Enforcement Point to the Policy Decision Point, also called authorization decision requests. The response process follows the aforementioned request flow in reverse. In XACML, attributes—information about the subject accessing a resource, the resource to be addressed, the action to be performed on the resource, and the environment—act as inputs deciding whether access is granted or not. XACML can also be used to implement role-based access control. In XACML, Rules specify the conditions under which an access request is approved (Permit) or rejected (Deny). If a Rule is applicable to a request but the conditions within the Rule fail to evaluate, the result is Indeterminate. Rules are grouped together in Policies and combined according to a combining algorithm defined by the parent Policy (e.g., deny-unless-permit, permit-unless-deny). Then, Policies may be grouped together in a larger Policy (or PolicySet in XACML 3.0) and combined according to its combining algorithm similarly. Policies include a Target, which is a condition that determines whether that Policy should be evaluated for a given request. Policies and Rules also include obligations and advice expressions. Obligations specify actions that must be executed during the processing of a request (e.g., for logging). Advice expressions are similar but may be ignored. XACML separates access control functionality into several components. Each operating environment in which access control is used has a Policy Enforcement Point (PEP), which implements the functionality to demand authorization and to grant or deny access to resources. These refer to an environment-independent and central Policy Decision Point (PDP), which is responsible for making the final access decision. The PDP refers to policies stored in the Policy Retrieval Point (PRP). Policies are managed through a Policy Administration Point (PAP). XACML 4.0 now has an equivalent representation in JSON: JACAL.

History Version 1.0 was ratified by OASIS standards organization in 2003. Version 2.0 was ratified by OASIS standards organization on February 1, 2005. Version 3.0 was ratified by OASIS in January 2013 and updated in July 2017 (Version 3.0 Plus Errata 01). Version 4.0 (Committee Specification Draft 01) was published by OASIS in February 2026.

Architecture

Terminology Non-normative terminology (following RFC 2904, except for PAP)

Flow

A user sends a request to access a resource; this request is intercepted by the Policy Enforcement Point (PEP). The PEP converts the request into a XACML authorization request. The PEP forwards the authorization request to the Policy Decision Point (PDP). The PDP evaluates the authorization request against its configured policies. The policies are acquired via a Policy Retrieval Point (PRP) and managed by a Policy Administration Point (PAP). If needed, the PDP also retrieves attribute values from underlying Policy Information Points (PIP). The PDP reaches a decision (Permit, Deny, NotApplicable, or Indeterminate) and returns it to the PEP. The PEP enforces the access decision against the user's request.

Policy elements

Structural elements XACML is structured into the following levels of elements:

PolicySet (replaced with/merged into Policy in XACML 4.0), Policy, Rule. Up to XACML 3.0, a PolicySet can contain any number of PolicySet and/or Policy elements, and a Policy can contain any number of Rule elements. In XACML 4.0, a Policy can contain any number of Policy and/or Rule elements. There is no longer a distinction between Policy and PolicySet distinction.

Attributes and categories Policies, Rules, and requests all use subjects, resources, environments, and actions.

A subject element is the entity requesting access. A subject has one or more attributes. The resource element is what the subject is requesting to access, e.g. some data, service or system component. A resource has one or more attributes. An action element defines the type of access requested on the resource. Actions have one or more attributes. An environment element can optionally provide additional information that is not specific to the subject, resource or action, but still in the context of the access request, e.g. the current date/time.

Targets XACML provides a target, which is basically a condition about the attributes of the subject and/or resource and/or action and/or environment that must be met for a policy or rule to apply to a given request. Once a policy is found to apply to a given request, its rules are evaluated to determine the access decision and response. In addition to being a way to check applicability, target information also provides a way to index policies, which is useful if you need to store many policies and then quickly sift through them to find which ones apply. When a request to access that service arrives, the PDP will know where to look for policies that might apply to this request because the policies are indexed based on their target constraints. Note that a target may also specify that it applies to any request. Policies and rules can all contain target elements.

Conditions Conditions only exist in Rules. Conditions are essentially Boolean expressions that can use AND, OR, NOT operators and a broad range of functions that can be used to compare two or more attributes together, e.g. subject-id==doctor-id. Up to XACML 3.0, Conditions are a more advanced form of Targets, whereas in XACML 4.0 they are the same. With conditions, it is possible to implement segregation of duty checks or relationship-based access control.

… excerpt ends here. Continue reading the full article.

Illustrations

XACML: Example of cross-enterprise federation where two enterprises federate using SAML and two Security Token Services (STS), establishing a circle of trust. The SAML in this picture is used for identity exchange / virtualization. The XACML is used server-side to determine whether access should be granted to the application functionality (functional access control) and the data behind it (data access control).
Example of cross-enterprise federation where two enterprises federate using SAML and two Security Token Services (STS), establishing a circle of trust. The SAML in this picture is used for identity exchange / virtualization. The XACML is used server-side to determine whether access should be granted to the application functionality (functional access control) and the data behind it (data access control).

Worked examples

Example 1 — a first encounter with XACML

Start with the simplest possible case. Write down what XACML claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to XACML before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about XACML ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of XACML

In research
XACML appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses XACML in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
XACML is common in secondary-school and first-year university syllabi. It links to neighbouring topics Access control, Computer security procedures, XML-based standards, so understanding it makes those chapters shorter.
In everyday life
Look for XACML outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “XACML” →

How to study XACML in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what XACML means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain XACML out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is XACML in simple terms?

The eXtensible Access Control Markup Language (XACML) is an XML-based standard markup language for specifying access control policies. The standard, published by OASIS, defines a declarative, fine-grained, attribute-based access control policy language, an architecture, and a processing model descr…

Why does XACML matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study XACML?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on XACML.

Tags

  • Access control
  • Computer security procedures
  • XML-based standards

Keep exploring