---
title: PolicyDecisionContext
description: Provides attributes and advices returned by AM policy decisions. When the PolicyEnforcementFilter processes a request, it injects the attributes and advices into this context.
component: pinggateway
version: 7.2
page_id: pinggateway:reference:PolicyDecisionContext
canonical_url: https://docs.pingidentity.com/pinggateway/2026/reference/PolicyDecisionContext.html
llms_txt: https://docs.pingidentity.com/pinggateway/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: 2025-06-02T16:30:54Z
superseded_by: https://docs.pingidentity.com/pinggateway/2026/reference/PolicyDecisionContext.html
section_ids:
  PolicyDecisionContext-properties: Properties
  PolicyDecisionContext-moreinfo: More information
---

# PolicyDecisionContext

Provides attributes and advices returned by AM policy decisions. When the [PolicyEnforcementFilter](Filters.html#PolicyEnforcementFilter) processes a request, it injects the attributes and advices into this context.

## Properties

The context is named `policyDecision`, and is accessible at `${contexts.policyDecision}`. The context has the following properties:

* `"attributes"`: unmodifiable map

  A map of attribute names to their values, provided in the policy decision. Can be empty, but not null.

* `"jsonAttributes"`: JsonValue

  A map of attribute names to their values, provided in the policy decision. Cannot be null.

* `"advices"`: [map](preface.html#definition-map)

  A map of advice names to their values, provided in the policy decision. Can be empty, but not null.

* `"jsonAdvices"`: JsonValue

  A map of advice names to their values, provided in the policy decision. Cannot be null.

* `"actions"`: [map](preface.html#definition-map)

  A map of action name keys to Boolean values that indicate whether the action is allowed (true) or denied (false) for the specified resource. Can be empty, but not null.

* `"jsonActions"`: JsonValue

  A map of action name keys to Boolean values that indicate whether the action is allowed (true) or denied (false) for the specified resource. Cannot be null.

* `"resource"`: [string](preface.html#definition-string)

  The resource value that was used when making the policy request. Can be empty, but not null.

## More information

[org.forgerock.openig.openam.PolicyDecisionContext.html](../_attachments/apidocs/org/forgerock/openig/openam/PolicyDecisionContext.html)
