> 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/sts/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="/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>
