> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/application-security/application-security-posture-management-aspm/application-security-rules/roles-and-permissions.md).

# Roles and permissions

Access to AppSec rules is controlled by the permission level assigned to each role. When configuring a role, select one of the following permission levels for AppSec Rules:

| Permission level | Description                                                                                                                                                                                            |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **None**         | No access to AppSec rules. The AppSec Rules page is not visible                                                                                                                                        |
| **View**         | Read-only access. View detection rules, rule details, rule labels, and related issues. Filter and sort the rules table. Cannot create, modify, clone, delete, or enable/disable rules                  |
| **View/Edit**    | Full access. View, create, modify, clone, delete, and enable or disable detection rules. Modify labels on both OOTB and custom rules. Access the AppSec Rules Wizard to author custom rule definitions |

The following out-of-the-box roles include AppSec Rules permissions:

| Role             | Permission level | Description                                                                                       |
| ---------------- | ---------------- | ------------------------------------------------------------------------------------------------- |
| **AppSec Admin** | **View/Edit**    | Full access to create, modify, clone, delete, and enable or disable detection rules               |
| **Developer**    | **View**         | Read-only access to view detection rules and rule details. Cannot create, modify, or delete rules |

**Custom roles**: To grant AppSec Rules access to a custom role, navigate to **Settings** → **Roles** and select the appropriate permission level.

{% hint style="info" %}

### Note

* Custom roles can be configured with either View or View/Edit permissions for AppSec rules
* API keys inherit the permissions of the role assigned during key generation. To perform write operations (create, modify, delete) through the AppSec rules API, the API key must have a role that includes View/Edit permissions
  {% endhint %}


---

# 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://cortex-docs.paloaltonetworks.com/application-security/application-security-posture-management-aspm/application-security-rules/roles-and-permissions.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.
