> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/i/idira-privileged-access-manager-self-hosted-formerly-cyberark-pam.md).

# Idira Privileged Access Manager   Self Hosted (formerly CyberArk PAM)

Idira Privileged Access Manager - Self-Hosted (formerly CyberArk PAM) stores and controls privileged credentials. OctoXLabs reads the Vault users through the Password Vault Web Access (PVWA) REST API.

## Use cases

* Find Vault users that logged on recently.

```
Adapters = cyberark-pam AND LastLogOnTime last now-30d/d
```

* Find Vault users that never logged on or have been inactive for a long time.

```
Adapters = cyberark-pam AND NOT LastLogOnTime last now-90d/d
```

## Before you begin

### Network

| Source              | Destination | Port          | Protocol |
| ------------------- | ----------- | ------------- | -------- |
| OctoXLabs connector | PVWA server | 443 (default) | HTTPS    |

### Required permissions

| Scope or role | Permission      | Needed for |
| ------------- | --------------- | ---------- |
| Vault account | **Audit users** | Users      |

## Create credentials in Idira Privileged Access Manager - Self-Hosted (formerly CyberArk PAM)

{% stepper %}
{% step %}

### Choose the account

Use a Vault account that has the **Audit users** permission.
{% endstep %}

{% step %}

### Choose the authentication method

Set Auth Type to match the account: CyberArk, LDAP (directory user mapped into the Vault), RADIUS or Windows.
{% endstep %}

{% step %}

### RADIUS

RADIUS is supported only without a challenge step. Concatenate the PIN and the token code in the password field.
{% endstep %}

{% step %}

### Older PVWA (optional)

Turn on Use Legacy Authentication only for older PVWA deployments that lack the current authentication API.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                 | Required | Type    | Default    | Description                                                                                         |
| ------------------------- | -------- | ------- | ---------- | --------------------------------------------------------------------------------------------------- |
| IP                        | Yes      | Text    | None       | Address of the PVWA server.                                                                         |
| Port                      | No       | Integer | `443`      | Port.                                                                                               |
| Is Secure                 | No       | Boolean | `true`     | Use HTTPS.                                                                                          |
| Username                  | Yes      | Text    | None       | Vault account with **Audit users** permission.                                                      |
| Password                  | Yes      | Text    | None       | Password of the account.                                                                            |
| Auth Type                 | No       | Choice  | `CyberArk` | `CyberArk`, `LDAP`, `RADIUS` or `Windows`.                                                          |
| Use Legacy Authentication | No       | Boolean | `false`    | Log on through the 1st generation authentication service. Auth Type is then ignored, except RADIUS. |
| Proxy                     | No       | Text    | None       | Proxy in `host:port` form. The connector prefixes it with `http://`.                                |
| Thread Count              | No       | Integer | `32`       | Parallel threads for user detail calls (1 to 32).                                                   |
| Sleep Time                | No       | Integer | `0`        | Delay in seconds between thread batches. Increase it when rate limit errors appear.                 |
| Timeout                   | No       | Integer | `30`       | Seconds to wait for API responses.                                                                  |

## Troubleshooting

| Error message                                                                     | Cause                            | Fix                                              |
| --------------------------------------------------------------------------------- | -------------------------------- | ------------------------------------------------ |
| `Authentication failed. The session may have expired or credentials are invalid.` | The API answered HTTP 401.       | Check the user name, password and Auth Type.     |
| `Access denied. The user does not have the required permissions in the Vault.`    | The API answered HTTP 403.       | Give the account the **Audit users** permission. |
| `CyberArk PAM internal server error.`                                             | The API answered HTTP 500.       | Check the PVWA server.                           |
| `Max retries exceeded for <url>`                                                  | The API kept returning HTTP 429. | Run discovery again later.                       |

## Change history
