> 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/data-access-governance/object-access-policies/privilege-template-policies.md).

# Privilege Template Policies

#### **Privilege Template Policies in TrustLogix**

**Privilege Template Policies** simplify access control by providing predefined **access policies** for databases and schemas. These policies are based on [**Privilege Templates**](/configurations/templates.md), which define the **object types and associated privileges** that will be granted to a **role or user** when the template is applied.

#### **How Privilege Template Policies Work**

1. **Define a Privilege Template**
   * A **template** specifies the **object types (database, schema, table, etc.)** and the **privileges (SELECT, INSERT, DELETE, etc.)** assigned to users or roles.
2. **Apply the Template During Policy Creation**
   * When creating an **Object Access Policy**, select a **Privilege Template** to automatically enforce predefined permissions.
3. **Role-Based Access Alignment**
   * Templates are structured around **data access personas**, such as:
     * **Data Analyst** – Read-only access to analytical datasets.
     * **Data Engineer** – Read and write access to transform data.
     * **Data Admin** – Full control over database objects.
     * **System Admin** – Administrative privileges for system-level management.
4. **Pre-Built & Customizable Templates**
   * TrustLogix provides **industry-standard privilege templates** out of the box.
   * Organizations can **customize existing templates** or **create new ones** based on specific access requirements.

#### **Creation of Privilege Template Policies**

Login as Super User or Policy Administrator

Click on Data Sources from main menu. User will see all the allowed data sources in the data sources list view

Select the data source for which user wants to create access policies(User can create access policies on data source for which he/she has access to)

If Access Policies is not the default tab, Click on Access Policies tab.&#x20;

Click on Create Access Policy button on access policy list view

Select Object Access card from the create policy model

Enter Policy Name and Policy Description

Select Privilege Template as Policy type from the drop down

Select the template name from the Privilege Template drop down (Click on Template link below the drop down to see what all object type and privileges are mapped under the selected template)

&#x20;Select the objects based on the chosen objects

> ***Schema represents the least object selection privilege in Template policy. All lower-level object privileges are applied at the schema and database levels, depending on the chosen schema option. If the option selected is ALL\_SCHEMAS for a database, it means that grants are applied at the database level, and individual schema selection is not permitted for that database. However, if an individual schema is selected, then grants will be applied at the schema level.***

Select Next button after selecting objects.

Select Principal value from the drop down

> **Principal value is**&#x20;
>
> ***Role for Snowflake***
>
> ***Account User or Account Group for Databricks***

Select Save button, to generate the grants for the selected objects and principal

Once the selected values are validated, grants will be generated

> If the values provided are not valid, the policy creation process will result in an error due to validation failures. Validation can fail for the following reasons:
>
> 1. Duplicate Policy Creation: A policy already exists for the selected object and principal combination.
> 2. Catalog Access: The policy creation will fail if the catalog data is not accessible by control plane role.

On successful validation, policy is created and ready for deployment

Click on deploy button, on successful deployment the policy status will be moved to Deployed.&#x20;

> ***Policy deployment will be successful only all grants to be properly assigned to the TrustLogix user and no duplicate policy exists. Otherwise, the policy will fail, and any missing grants or configurations must be reported.***

**Benefits of Privilege Template Policies**

**Standardized Access Control** – Ensures role-based permissions follow security best practices.\
**Simplified Policy Management** – Reduces manual effort in defining privileges for each user/role.\
**Customizable for Flexibility** – Organizations can tailor policies to their **specific data governance needs**.\
**Enforces Least-Privilege** – Grants only necessary permissions, minimizing security risks.


---

# 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/data-access-governance/object-access-policies/privilege-template-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.
