---
type: api
title: Run a privileges check on Privilege Monitoring
description: **Deprecated in 9.4.0.** Use the Watchlists APIs instead.
url: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-privmonprivileges
resource: https://www.elastic.co/elastic/docs-builder/docs/4493/api/doc/kibana/v0/operation/operation-privmonprivileges
products:
  - Kibana
---

# Run a privileges check on Privilege Monitoring

deprecated

- Server: `https://{kibana_url}`

## Paths

- `GET` `/api/entity_analytics/monitoring/privileges/privileges`

## Description

**Deprecated in 9.4.0.** Use the Watchlists APIs instead.

Check if the current user has all required permissions for Privilege Monitoring.

## Authentication

- Api key: `Authorization: <value>`
  These APIs use key-based authentication. You must create an API key and use the encoded value in the request header. For example: `Authorization: ApiKey base64AccessApiKey`
- Basic: `Authorization: Basic <credentials>`

## Response

Successful response

`application/json`

- `has_all_required` (boolean)
- `has_install_permissions` (boolean)
- `has_read_permissions` (boolean)
- `has_write_permissions` (boolean)
- `install_privileges` (object)
  - `elasticsearch` (object)
    - `cluster` (map string to boolean)
    - `index` (map string to string to boolean)
  - `kibana` (map string to boolean)
- `privileges` (object)
  - `elasticsearch` (object)
    - `cluster` (map string to boolean)
    - `index` (map string to string to boolean)
  - `kibana` (map string to boolean)
## Code examples

#### Console

```console
GET kbn:/api/entity_analytics/monitoring/privileges/privileges
```

#### curl

```curl
curl -X GET "${KIBANA_URL}/api/entity_analytics/monitoring/privileges/privileges" \
  -H "Authorization: ApiKey ${API_KEY}"
```

## Response examples

#### Privileges check response

```json
{
  "has_all_required": true,
  "privileges": {
    "elasticsearch": {
      "index": {
        ".entity_analytics.monitoring.user-default": {
          "read": true
        }
      }
    }
  }
}
```

