> For the complete documentation index, see [llms.txt](https://docs.trustlogix.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.trustlogix.io/trust-access/application-access-governance-preview/access-policies.md).

# Access Policies

Steps to create a new Resource Access Policy in TrustLogix. This specific policy targets the "Finance" module and returns detailed response context (User city, Department, and Sub-module information) when the action View is performed, provided the resource's department is set to Finance.

***

### Initiate Policy Creation

Navigate to the Access Policies management section within your application to begin the registration.

* Navigate to: Application Module
* Click the "Create policy" button.

### Define Policy Details

Provide the basic identification details for your new policy.

* Name: Enter a unique name (e.g., "FinanceModule").
* Description: Provide a summary of the policy's purpose.
* Click "Next" to proceed to resource selection.

### Resource Selection and Actions

Specify which resources this policy protects and what operations are governed.

* Resource Source: Select RESOURCE from the dropdown.
* Resources: Select the specific resource (e.g., Finance).
* Actions allowed: Select View from the available operations.
* Click "Next" to define conditions.

### Set Policy Conditions

Configure the logic that determines when this policy is applied.

* Select Attribute Type: Choose Resource Attributes.
* Select Attribute: Select Department.
* Operator: Choose Equals.
* Value: Enter Finance.

***Note: Policies condition can contain user attribute (created under Attribute Management section) or Request Attributes (which can be send in authorization request payload)***

### Configure Response Context

Define the additional information that will be returned in the policy evaluation response.

* User Attributes: Select city to include the user's city of residence in the response.
* Resource Attributes: Select Department to echo the resource's department.
* Custom Attributes: Add a new custom field:
* Name: Enter Sub Module.
* Value: Enter Plan, Budget.

### Deploy the policy

Complete the policy creation and push it to the authentication service.

* Save: Click the "Save" button to store the configuration.

Deploy: Click "Deploy" in the "Generating Policy" dialog to move the policy into the Auth Service.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.trustlogix.io/trust-access/application-access-governance-preview/access-policies.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
