> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agents.kolena.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom Roles

> Combine Allowed Actions into Custom Roles

> [!NOTE]
>
> This is available on the Enterprise Plan. [Contact Kolena](mailto:support@kolena.com) if you’re not on an Enterprise plan but would like to try this feature.

Kolena has three [default Roles](https://docs.agents.kolena.com/user-management.md#assign-roles) which can be applied to Users or Teams.
In some cases you may wish to define customized Roles.
Example use cases include:

* Restricting access to a true "read-only" role.
* Allowing administrative users the ability to manage billing without being able to modify Agents.

## Defining Custom Roles

Custom Roles can be defined from your [Organization page](https://agents.kolena.com/organization?tab=custom-roles).
Click "Add Custom Role" and then provide a name for the Role and select all actions which the Role will be allowed to perform.

![](https://mintcdn.com/kolena/M-Xda4HWy0uPF2SH/assets/custom-roles.png?fit=max\&auto=format\&n=M-Xda4HWy0uPF2SH\&q=85\&s=6d0f16379671bfc87692520170341174)

> [!TIP]
>
> All actions have a **scope** associated to them.
> This defines the extent in which the action is allowed.
> Actions can be scoped to the **Organization** or to the **Workspace**.
> For example:
>
> * "Manage User" with Organization scope allows inviting new Users and controlling membership within the Organization.
> * "Manage User" with Workspace scope allows modifying the Roles of all Users and Teams within the Workspace.

### Available Actions

The following actions can be assigned to Custom Roles:

| Scope | Action | Description |
| - | - | - |
| Workspace | View Agent | Allows viewing Agents and all associated data including Prompts, Results, and Dashboards within the Workspace. |
| Workspace | Create Agent Run | Allows uploading files to an Agent and creating new Agent Runs within the Workspace. |
| Workspace | Delete Agent Run | Allows deleting files from an Agent and deleting Agent Runs within the Workspace. |
| Workspace | Create Agent Comment | Allows adding comments to results of Agent Runs within the Workspace. |
| Workspace | Delete Agent | Allows deleting Agents within the Workspace. |
| Workspace | Override Agent Result | Allows overriding the result of Agent Runs within the Workspace. |
| Workspace | Manage Agent Data Retention Policy | Allows managing data retention policies for Agents within the Workspace. |
| Workspace | Manage Agent Connections | Allows connecting new Integrations and attaching them to Agents within the Workspace. Updating or removing an Integration afterwards is limited to the person who connected it, or to a Role with the Organization scoped Manage Integration action. |
| Workspace | Manage Agent Dashboards | Allows managing Dashboards for Agents within the Workspace. |
| Workspace | Manage Agent Prompts | Allows managing Prompts for Agents within the Workspace. |
| Workspace | Manage Agent Model Routing | Allows changing the model routing for Agents within the Workspace, including migrating an Agent to the latest generation of models. |
| Workspace | Manage Agent Permissions | Allows managing permissions for Agents within the Workspace. |
| Workspace | Manage Agent Metadata | Allows managing Metadata (including name, notes, icon) for Agents within the Workspace. |
| Workspace | Manage Agent Validation | Allows managing Ground Truths and Validations for Agents within the Workspace. |
| Workspace | Create Agent | Allows creating new Agents within the Workspace. |
| Workspace | Manage Folder | Allows creating, renaming, and deleting folders within the Workspace, and moving Agents between them. |
| Workspace | View Usage | Allows viewing usage statistics for the Workspace. |
| Workspace | Manage Workspace Data Retention Policy | Allows managing data retention policies for the Workspace. |
| Workspace | ⚠️ Manage User | Allows adding and removing Users and Teams in the Workspace and assigning any Workspace Role. **Equivalent to the `admin` Role within the Workspace** (a holder can grant themselves access to every Agent in it). |
| Organization | View Access Logs | Allows viewing access logs for the Organization. Also allows listing all Workspaces in the Organization. |
| Organization | Manage Data Retention Policy | Allows managing data retention policies for the Organization. |
| Organization | Manage IP Whitelist | Allows managing the IP whitelist for the Organization. |
| Organization | Use API Key | Allows managing and using API keys **associated to your User** within the Organization. |
| Organization | View API Key | Allows viewing all API keys within the Organization. |
| Organization | Manage API Key | Allows creating and revoking all API keys within the Organization. |
| Organization | View Usage | Allows viewing usage statistics for the Organization. Also allows listing all Workspaces in the Organization. |
| Organization | Manage Usage | Allows managing usage settings (limits) for the Organization. Also allows listing all Workspaces in the Organization. |
| Organization | View Integration | Allows viewing every Integration connected in the Organization, including who connected each one and which Agents use it. Also allows listing all Workspaces in the Organization. |
| Organization | Manage Integration | Allows updating, testing, and removing any Integration in the Organization, including ones connected by someone else. |
| Organization | ⚠️ Manage User | Allows adding, removing, and modifying Users, Service Users, and Teams, managing Custom Roles, and configuring directory sync. **Equivalent to the `admin` Role** (a holder can assign any Role, including `admin`, to themselves or anyone else). |

> [!WARNING]
>
> **⚠️ `Manage User` is an administrative action.**
> At Organization scope it is equivalent to the `admin` Role: a holder can assign any Role, including `admin`, to themselves, and so can reach every action in the Organization.
> At Workspace scope it is equivalent to `admin` within that Workspace.
>
> A Custom Role containing `Manage User` cannot be used to restrict what its holder can reach. Grant it only to Users you would make administrators.

## Assigning Custom Roles

Custom Roles can be assigned in all the same places as the default `viewer`, `editor`, `admin` Roles.
Custom Roles can be assigned to individual Users or to Teams.
Assignments can happen at the Organization level from the [Users tab](https://agents.kolena.com/organization?tab=users) or within individual Workspaces.

> [!NOTE]
>
> If your Organization contains multiple Workspaces, any Custom Role which implements an `Organization` scoped action must be assigned at the Organization level to a User or Team.
>
> **Example:** Suppose you have a Custom Role named `Security Auditor` which contains the `View Access Logs` action (Organization scope) and the `View Agent` action (Workspace scope).
> You should assign this role in two places:
>
> 1. To Users or Teams from the Organization Users/Teams tab *and*
> 2. To the same Users or Teams from each Workspace's Roles tab.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.