# Create Cluster Role

A ClusterRole is a set of permissions that can be assigned to resources within a given cluster. Kubernetes APIs are categorized into API groups, based on the API objects that they relate to. The API groups for Kubernetes that are visible on the Platform9 Clarity UI consist of the upstream Kubernetes APIs and the Kubernetes APIs provided by Platform9.

While creating a ClusterRole, you can specify the operations that can be performed by the ClusterRole on one or more API objects in one or more API groups. You can create one or more Kubernetes ClusterRoles for a cluster through the Platform9 Clarity UI. You can also set permissions on operations related to one or more API groups, when you create a new ClusterRole.

Follow the steps given below to create a ClusterRole through the Platform9 Clarity UI.

1. Navigate to Kubernetes>RBAC>ClusterRoles tab.
2. Click the Add ClusterRole button and a new window will open.

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

3. Add a name for the new ClusterRole.
4. Next, select the Cluster. Search or select an API group and select the operations to grant permissions on operations for the selected API group. To grant permission of a specific verb operation for the resource, select the checkbox for the specific operation.
5. Click Add ClusterRole.

The ClusterRole is created and is visible in the Platform9 management plane UI. Once a ClusterRole is created, you can assign the Role to a user or group of Users by creating a ClusterRoleBinding.


---

# 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.14/clusters/kubernetes-rbac/create-cluster-role.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.
