﻿---
title: Control access to cases
description: Create custom roles and configure Kibana feature privileges to control access to cases, and grant read access to the case analytics indices.
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9289/explore-analyze/cases/control-case-access
products:
  - Elastic Cloud Serverless
  - Elastic Documentation
  - Elastic Observability
  - Elastic Security
  - Kibana
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Control access to cases
To manage cases, users need the appropriate Kibana feature privileges. You can grant different levels of access depending on what users need to do, from full control over cases to view-only access.

## Privileges quick reference

The following table shows the minimum privileges required for each activity. Higher privilege levels include the access shown here. Set **Cases** privileges under your solution (**Stack Management**, **Security**, or **Observability**). Refer to the following sections for the full breakdown.

| To...                                                                                                                                                                                                                                                | Minimum required privilege                                                                                                                                              |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| View cases                                                                                                                                                                                                                                           | **Cases: Read**                                                                                                                                                         |
| Create and manage cases                                                                                                                                                                                                                              | **Cases: All**                                                                                                                                                          |
| Be assigned to cases                                                                                                                                                                                                                                 | **Cases: All** (you must also log in at least once)                                                                                                                     |
| Manage connectors and push cases externally                                                                                                                                                                                                          | **Cases: All** + **Actions and Connectors: All** (under **Management**)                                                                                                 |
| Manage case templates and the field library <applies-to>Elastic Stack: Generally available since 9.5</applies-to> <applies-to>Elastic Cloud Serverless: Generally available</applies-to>                                                             | **Cases: All** + **Manage templates** sub-feature privilege                                                                                                             |
| Add alerts to cases                                                                                                                                                                                                                                  | **Cases: All** + alert privileges for your solution (refer to [Give access to add alerts to cases](#give-alerts-access) for more information)                           |
| Report on case data in the spaces and solutions your Cases privilege covers, with the analytics indices <applies-to>Elastic Stack: Generally available since 9.5</applies-to> <applies-to>Elastic Cloud Serverless: Generally available</applies-to> | **Cases: Read**                                                                                                                                                         |
| Report on case data beyond the spaces and solutions your Cases privilege covers, with the analytics indices                                                                                                                                          | **read** and **view_index_metadata** Elasticsearch index privileges (refer to [Give access to the case analytics indices](#give-analytics-access) for more information) |


## Create custom roles for cases

<applies-switch>
  <applies-item title="stack: ga" applies-to="Elastic Stack: Generally available">
    [Create or update a role](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9289/deploy-manage/users-roles/cluster-or-deployment-auth/kibana-role-management), then set **Cases** privileges under your solution (**Stack Management**, **Security**, or **Observability**). To grant individual privileges, turn on **Customize sub-feature privileges**. For details about feature and sub-feature privileges, refer to [Kibana privileges](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9289/deploy-manage/users-roles/cluster-or-deployment-auth/kibana-privileges).
  </applies-item>

  <applies-item title="serverless: ga" applies-to="Elastic Cloud Serverless: Generally available">
    [Create a custom role](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9289/deploy-manage/users-roles/serverless-custom-roles), then set **Cases** privileges under your solution (**Security** or **Observability**). To grant individual privileges, turn on **Customize sub-feature privileges**.
  </applies-item>
</applies-switch>


## Customize sub-feature privileges for cases

When **Customize sub-feature privileges** is on for **Cases**, you can grant these privileges individually. For details about feature and sub-feature privileges, refer to [Kibana privileges](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9289/deploy-manage/users-roles/cluster-or-deployment-auth/kibana-privileges).

| Privilege                                                                                                                                                         | Description                |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------|
| **Delete**                                                                                                                                                        | Delete cases and comments. |
| **Case settings**                                                                                                                                                 | Edit case settings.        |
| **Create comments & attachments**                                                                                                                                 | Add comments to cases.     |
| **Re-open**                                                                                                                                                       | Re-open closed cases.      |
| **Assign users**                                                                                                                                                  | Assign users to cases.     |
| **Manage templates** <applies-to>Elastic Stack: Generally available since 9.5</applies-to> <applies-to>Elastic Cloud Serverless: Generally available</applies-to> | Manage case templates.     |


## Give full access to manage cases and settings

<applies-switch>
  <applies-item title="stack: ga" applies-to="Elastic Stack: Generally available">
    - `All` for the **Cases** feature under the appropriate solution (**Stack Management**, **Security**, or **Observability**). This grants full control over cases, including creating, deleting, and editing case settings. You can turn on **Customize sub-feature privileges** to limit access.
    - `All` for the **Actions and Connectors** feature under **Management**. This is required to create, add, delete, and modify connectors that push cases to external systems.
  </applies-item>

  <applies-item title="serverless: ga" applies-to="Elastic Cloud Serverless: Generally available">
    - `All` for the **Cases** feature under the appropriate solution (**Security** or **Observability**).
    - `All` for the **Actions and Connectors** feature under **Management**. This is required to create, add, delete, and modify case connectors and send updates to external systems.
  </applies-item>
</applies-switch>


## Give assignee access to cases

<applies-switch>
  <applies-item title="stack: ga" applies-to="Elastic Stack: Generally available">
    `All` for the **Cases** feature under the appropriate solution (**Stack Management**, **Security**, or **Observability**).Users must log in to their deployment at least once before they can be assigned to cases. Logging in creates the required user profile.
  </applies-item>

  <applies-item title="serverless: ga" applies-to="Elastic Cloud Serverless: Generally available">
    `All` for the **Cases** feature under the appropriate solution (**Security** or **Observability**).Users must log in to their deployment at least once before they can be assigned to cases. Logging in creates the required user profile.
  </applies-item>
</applies-switch>


## Give view-only access to cases

<applies-switch>
  <applies-item title="stack: ga" applies-to="Elastic Stack: Generally available">
    `Read` for the **Cases** feature under the appropriate solution (**Stack Management**, **Security**, or **Observability**).
  </applies-item>

  <applies-item title="serverless: ga" applies-to="Elastic Cloud Serverless: Generally available">
    `Read` for the **Cases** feature under the appropriate solution (**Security** or **Observability**).
  </applies-item>
</applies-switch>


## Give access to manage case templates

<applies-to>
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available since 9.5
</applies-to>

To create, edit, delete, import, and export [case templates](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9289/explore-analyze/cases/create-case-templates) and [field library entries](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9289/explore-analyze/cases/create-case-field-library), grant the following privileges. Users without **Manage templates** can still select and apply enabled templates when creating or updating a case.
<applies-switch>
  <applies-item title="stack: ga" applies-to="Elastic Stack: Generally available">
    1. Set `All` for the **Cases** feature under the appropriate solution (**Stack Management**, **Security**, or **Observability**).
    2. Turn on **Customize sub-feature privileges**.
    3. Enable **Manage templates**.
  </applies-item>

  <applies-item title="serverless: ga" applies-to="Elastic Cloud Serverless: Generally available">
    1. Set `All` for the **Cases** feature under the appropriate solution (**Security** or **Observability**).
    2. Turn on **Customize sub-feature privileges**.
    3. Enable **Manage templates**.
  </applies-item>
</applies-switch>


## Give access to add alerts to cases

<applies-switch>
  <applies-item title="{ stack: ga 9.4+, serverless: ga }" applies-to="Elastic Cloud Serverless: Generally available, Elastic Stack: Generally available since 9.4">
    - `All` for the **Cases** feature under the appropriate solution (**Security** or **Observability**).
    - To work with alerts in cases:
      - **Security**: `Read` or `All` for the **Security** → **Alerts** feature. For what each level allows, refer to [Detections privileges](/elastic/docs-content/pull/9289/solutions/security/detect-and-alert/detections-privileges#manage-alerts).
      - **Observability**: `Read` for **Observability**
  </applies-item>

  <applies-item title="stack: ga 9.0-9.3" applies-to="Elastic Stack: Generally available from 9.0 to 9.3">
    - `All` for the **Cases** feature under the appropriate solution (**Security** or **Observability**).
    - `Read` for a solution that has alerts (for example, **Observability** or **Security**).
  </applies-item>
</applies-switch>


## Give access to the case analytics indices

<applies-to>
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available since 9.5
  - Elastic Stack: Preview from 9.2 to 9.4
</applies-to>

To let users report on case data, grant them read access to the [case analytics indices](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/9289/explore-analyze/cases/case-analytics-indices).
<applies-switch>
  <applies-item title="{ "stack": "ga 9.5", "serverless": "ga" }" applies-to="Elastic Cloud Serverless: Generally available, Elastic Stack: Generally available since 9.5">
    Elasticsearch stores case analytics data in three hidden indices:

    | Index                | Use it to report on                                                                           |
    |----------------------|-----------------------------------------------------------------------------------------------|
    | `.cases`             | Your cases and their current state, such as status, severity, assignees, and timing metrics.  |
    | `.cases-activity`    | What happened to cases over time, such as status changes, comments, and who made each change. |
    | `.cases-attachments` | What's attached to cases, such as alerts, comments, files, dashboards, and visualizations.    |
    Users with the Kibana **Cases** feature privilege **Read** or **All** can already query these indices. Elasticsearch limits their results to the cases in the spaces and solutions their role covers.Users without **Cases** privileges can't read the indices unless they have sufficient Elasticsearch privileges, such as a superuser.To let users report on case data across all spaces and solutions, grant them the required privileges on the indices directly. Create an Elasticsearch role with the `read` privilege on the analytics indices. Add `view_index_metadata` if users also need to retrieve the index mappings. Then assign the role to your users.A direct index grant only widens access. Elasticsearch combines it with the implicit access from the **Cases** privilege, so a role with unrestricted `read` on these indices removes the space and solution limit. You can't use an Elasticsearch role to narrow what **Cases: Read** already grants. To remove access, remove the **Cases** privilege.In self-managed clusters, implicit access relies on document-level security. If `xpack.security.dls_fls.enabled` is `false`, users with only a **Cases** privilege can't read the indices, and only direct index grants work.For example, the following request creates a `cases_analytics_reader` role with read access to all three indices:
    ```console
    PUT _security/role/cases_analytics_reader
    {
      "indices": [
        {
          "names": [".cases", ".cases-activity", ".cases-attachments"],
          "privileges": ["read", "view_index_metadata"]
        }
      ]
    }
    ```

    <warning>
      A role with direct read access to these indices isn't limited to the user's spaces and solutions. It can query case data across all spaces and solutions. Grant this access carefully, and filter by `space_id` and `owner` in your queries and visualizations to limit scope.
    </warning>
  </applies-item>

  <applies-item title="stack: preview 9.2-9.4" applies-to="Elastic Stack: Preview from 9.2 to 9.4">
    Kibana Cases feature privileges don't apply to these indices, so grant access with Elasticsearch index privileges instead. Grant your role at least `read` and `view_index_metadata` privileges on the case analytics indices. Each solution and space has its own set of indices, so use the `.internal.cases*` pattern to cover them all, or target specific indices by name. To find the right index names, refer to [Case analytics indices](/elastic/docs-content/pull/9289/explore-analyze/cases/case-analytics-indices#case-analytics-indices-list).
  </applies-item>
</applies-switch>


## Revoke all access to cases

<applies-switch>
  <applies-item title="stack: ga" applies-to="Elastic Stack: Generally available">
    `None` for the **Cases** feature under the appropriate solution (**Stack Management**, **Security**, or **Observability**).
  </applies-item>

  <applies-item title="serverless: ga" applies-to="Elastic Cloud Serverless: Generally available">
    `None` for the **Cases** feature under the appropriate solution (**Security** or **Observability**).
  </applies-item>
</applies-switch>