> For the complete documentation index, see [llms.txt](https://docs.portainer.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.portainer.io/user/kubernetes/more-resources/namespace-roles.md).

# 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="https://content.gitbook.com/content/MmwXfSb4bP3JyB8BLrAf/blobs/qA2vQHUynpDC9lMEHX26/2.41-roles.png" 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="https://content.gitbook.com/content/MmwXfSb4bP3JyB8BLrAf/blobs/H0ztTtOBr6jW2rdOSPbU/2.41-roles-details.png" 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="https://content.gitbook.com/content/MmwXfSb4bP3JyB8BLrAf/blobs/m7liUjGnRbNLbT4J0uAu/2.41-role-bindings.png" 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="https://content.gitbook.com/content/MmwXfSb4bP3JyB8BLrAf/blobs/OuN3LD62DmilmHNYq94W/2.41-role-binding-details.png" alt=""><figcaption></figcaption></figure>
