> 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/d/delinea-secret-server.md).

# Delinea Secret Server

Delinea Secret Server stores and controls privileged credentials. OctoXLabs uses it to add the Secret Server users, and optionally the secrets treated as devices, to the inventory. It can add permissions, SDK client rules and roles to each user.

## Use cases

* Review Secret Server users and when they last logged on to find stale accounts.
* Add the roles and secret permissions of each user to review privileged access.

## Before you begin

### Network

| Source              | Destination        | Port               | Protocol                         |
| ------------------- | ------------------ | ------------------ | -------------------------------- |
| OctoXLabs connector | Secret Server host | 443 (configurable) | HTTPS (HTTP if Is Secure is off) |

The default path is `/SecretServer`. Use Custom Base Path for another path.

### Required permissions

| Scope or role                                         | Permission | Needed for |
| ----------------------------------------------------- | ---------- | ---------- |
| Local Secret Server user with the **View Users** role | Read       | User list  |

Not verified: extra roles needed for Fetch Permissions, Fetch Rules, Fetch User Roles and Fetch Devices.

## Create credentials in Delinea Secret Server

{% stepper %}
{% step %}

### Create a local user

In Secret Server, create a local user (not a domain user).
{% endstep %}

{% step %}

### Assign the role

Give the user the **View Users** role.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter         | Required | Type              | Default | Description                                                |
| ----------------- | -------- | ----------------- | ------- | ---------------------------------------------------------- |
| IP                | Yes      | String            | None    | IP address or host name.                                   |
| Port              | No       | Integer           | `443`   | Port.                                                      |
| Username          | Yes      | String            | None    | Local user name.                                           |
| Password          | Yes      | String            | None    | Password of the user.                                      |
| Use custom path?  | No       | Boolean           | `False` | Set to true if Secret Server is not under `/SecretServer`. |
| Custom Base Path  | No       | String            | `/`     | Path used when the option above is on.                     |
| Timeout           | No       | Integer (seconds) | `30`    | Time to wait for API responses.                            |
| Is Secure         | No       | Boolean           | `True`  | Use HTTPS.                                                 |
| Fetch Devices     | No       | Boolean           | `False` | Fetch secrets as devices.                                  |
| Fetch Permissions | No       | Boolean           | `False` | Add secret permissions to each user.                       |
| Fetch Rules       | No       | Boolean           | `False` | Add SDK client rules to each user.                         |
| Fetch User Roles  | No       | Boolean           | `False` | Add roles and role types to each user.                     |

## Troubleshooting

| Error message                     | Cause                                                                                   | Fix                               |
| --------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------- |
| The API response text on HTTP 403 | Secret Server refused the request. The connector raises the response body as the error. | Give the account the needed role. |

## Change history
