# Edit Rbac Profile

## Edit Profile

If you need to modify an RBAC profile, you can select it using the radio button and then use one of the three icons above the profile name, which becomes available to use. The three options are as follows.

* Manage Bindings
* Edit
* Delete

Using the edit function, we can return to the menu and choose one of the four tabs (Roles, ClusterRoles, RoleBindings, and ClusterRoleBindings). We then modify its settings in the RBAC Profile, where we can also see the available namespaces.

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

For example, if we choose the ClusterRole tab and the click on the small edit icon to the right of each role, it opens a new window which allows further editing of the resources, which will search the linked cluster and show any additional verbs that may not be included in the policy.

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

You can then modify the resource further by clicking the *Edit* icon to the right and add any auxiliary verbs needed to the resource.

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

Lastly, click *Save* three times to updates the policy, and brings us back to the edit screen.

## Add Roles

In the Edit RBAC Profile screen, we can also add additional Roles, ClusterRoles, RoleBindings, and ClusterRoleBindings to existing profiles. To accomplish this, select the tab to choose the role to update and then click on (in this example) the Add New Cluster Role.

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

Next, add the name, select the cluster, and then the new API Access/Permission.

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

Once the API Group and resource is chosen, select the permissions to be used.

Once completed, click *Add*, then *Save* to update the New Cluster Role.

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

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

When returned to the edit screen, click Save again to complete the modification.

{% hint style="success" %}
**Add Policy without an existing cluster**

To add an RBAC Policy without an existing cluster use the YAML view of the Add Role, Cluster Role or Role Bindings of Cluster Role Bindings
{% endhint %}

Permission Types Quick View

As an additional element, once back in the main RBAC Profile screen, we can review the different permissions for the Roles, ClusterRoles, RoleBindings, and ClusterRoleBindings types by momentarily hovering our mouse over each role.

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

This shows us the currently assigned permissions of each role.

<figure><img src="/files/8iF08mDUJQWP5jXctbY4" 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.platform9.com/managed-kubernetes/5.7/rbac-profiles/edit-rbac-profile.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.
