# Roles

This section lists the Roles and Role Bindings on your Kubernetes cluster. New Roles and Role Bindings can be created via the **Create from manifest** button.

Select the relevant tab to switch between Roles and Role Bindings.

## Roles

The list of Roles can be filtered by namespace.

To remove a Role, check the box next to the Role you want to remove then click the **Remove** button.

<figure><img src="/files/doDdnrH81VblJk6KLZqS" alt=""><figcaption></figcaption></figure>

Click the role **name** to open the role details page, where you can view the role description and edit the YAML.

To edit the role YAML, select the **YAML** tab and make your changes directly in the editor. Then select **Apply changes** in the bottom-right corner to patch the modified resources through the Kubernetes API. Any removed resources or unexpected changes to resources are ignored. Resources in namespaces marked as **system** cannot be edited.

To view details of the role, select the **Describe** tab.

<figure><img src="/files/DEDk6B6pCSQWTYD8wCqi" alt=""><figcaption></figcaption></figure>

## Role Bindings

The list of Role Bindings can be filtered by subject namespace and lists the **name**, **role kind**, **role name**, **subject kind**, **subject name**, **subject namespace** and **created** date.

To remove a Role Binding, check the box next to the Role Binding you want to remove then click the **Remove** button.

<figure><img src="/files/XDE4mjYc7JXtvMN3jy07" alt=""><figcaption></figcaption></figure>

Click the role binding **name** to open the role binding details page, where you can view the role binding description and edit the YAML.

To edit the role binding YAML, select the **YAML** tab and make your changes directly in the editor. Then select **Apply changes** in the bottom-right corner to patch the modified resources through the Kubernetes API. Any removed resources or unexpected changes to resources are ignored. Resources in namespaces marked as **system** cannot be edited.

To view details of the role binding, select the **Describe** tab.

<figure><img src="/files/8rDkXGtSW1DGFJKb29yo" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.portainer.io/sts/user/kubernetes/more-resources/namespace-roles.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
