# Managing Users

**Adding Users:**

To add users, groups, or service accounts, go to the "User" tab on the RBAC view and click on the "Add" button. This action will bring up the Add User modal.

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

To create a user, choose "User" on the radio group, enter a name in the name input field, and optionally select any role or cluster role you wish to bind to the user.

<figure><img src="/files/0DQSAOqxfPCGyBlOeFyZ" alt=""><figcaption><p>Adding User</p></figcaption></figure>

**Adding Groups:**

To create a Group, follow the same steps as creating a user. The only difference is that you will select "Group" on the radio group of the Add Modal.

**Adding Services Accounts:**

To create a Service Account, click on the "Add" button on the user tab. Once the Add modal is displayed, select the "Service Account" option on the radio group, define a name, select a namespace where to create the service account, and choose any role or Cluster role that you want to bind the Service Account to.

<figure><img src="/files/fKcc1274VlZz5Or5jFDm" alt=""><figcaption><p>Adding Service account</p></figcaption></figure>

**Delete:**

To delete a user, group, or service, simply select the element you wish to delete from the list and then click on the delete button.

**Search:**

To locate a user, group, or service account, utilize the search bar to swiftly find the desired item.

**Binding Roles and Cluster Roles to a user, group, or Service Account:**

First, select a user, group, or service account. Then, navigate to the User Roles section in the middle of the screen. Here, you'll find all the role and cluster role bindings for the selected user, group, or service account. If you wish to bind any additional role or cluster role to the user, click on the plus button, and the Role Cluster Role Binding modal will appear.

<figure><img src="/files/850R1qUCS8iVPrGI7xbi" alt=""><figcaption><p>Add bindings</p></figcaption></figure>

Choose the roles/cluster roles you wish to add, then click on the "Add" button. K8Studio will create all necessary bindings accordingly.

**Delete user bindings**

After selecting a user, group, or service account, navigate to the Users Roles panel in the center of the screen. Here, you'll find a list of all available bindings for the selected item. Choose the bindings you wish to delete, then click on the delete button to remove them.

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

**User Permission View.**

This view provides a combined overview of the permissions granted by the different bindings to a user, group, or service account. It allows us to easily understand the permissions assigned to a user.

<figure><img src="/files/bHF4zgelu2oMBxu53V02" alt=""><figcaption><p>Permissions View</p></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://doc.k8studio.io/documentation/rbac-view/managing-users.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.
