> 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/s/sectona-pam.md).

# Sectona PAM

Sectona is a privileged access management platform. OctoXLabs uses it to add the assets it manages to the device inventory, and its users with their group membership and administrator status to the user inventory.

## Use cases

* List assets that Sectona PAM manages.

```
Adapters = sectona-pam
```

* List Sectona PAM users and the groups they belong to.

```
Adapters = sectona-pam AND MembersOf = *
```

## Before you begin

### Network

| Source              | Destination                                           | Port                        | Protocol                           |
| ------------------- | ----------------------------------------------------- | --------------------------- | ---------------------------------- |
| OctoXLabs connector | Sectona PAM server (IP or tenant host name you enter) | 443 (default, configurable) | HTTPS (HTTP when Is Secure is off) |

### Required permissions

| Scope or role                    | Permission | Needed for                        |
| -------------------------------- | ---------- | --------------------------------- |
| Asset Management > Manage Assets | Read       | Assets (also the connection test) |
| User Management > Manage Users   | Read       | Users                             |
| User Management > Manage Groups  | Read       | Group details of users            |

Alternatively use the built-in Administrator role. Without Manage Users, user discovery fails with error code 011649. Without Manage Groups, users are collected without group details.

## Create credentials in Sectona PAM

{% stepper %}
{% step %}

### Create the user

Under **Platform Configuration > User Management > Users**, create a dedicated user with authentication type **Sectona Authentication**.
{% endstep %}

{% step %}

### Add it to PAM

Under **Manage > User Management > + Add User**, add the user to PAM and activate it. Select **Devoid Security** so the account does not become locked or dormant.
{% endstep %}

{% step %}

### Create a role

Under **Platform Configuration > User Role Management > + Add a New Role**, create a role with the permissions in the table above, or use the Administrator role.
{% endstep %}

{% step %}

### Do not use a Vault API key

Do not use a Vault API Registration access key. It serves only the Password Vault API.
{% endstep %}

{% step %}

### Find the instance name

Find the instance name under **System Management > Instance Manager**.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type    | Default | Description                                                                                         |
| --------- | -------- | ------- | ------- | --------------------------------------------------------------------------------------------------- |
| IP        | Yes      | String  | None    | IP address or host name of the Sectona PAM server. For Sectona cloud, the host name of your tenant. |
| Port      | No       | Integer | 443     | Port of the web interface.                                                                          |
| Is Secure | No       | Boolean | True    | Use HTTPS.                                                                                          |
| Username  | Yes      | String  | None    | User name of a Sectona user.                                                                        |
| Password  | Yes      | String  | None    | Password of that user.                                                                              |
| Instance  | No       | String  | Default | Name of the Sectona instance. Sent with every call.                                                 |
| Timeout   | No       | Integer | 30      | Seconds to wait for API responses.                                                                  |

## Troubleshooting

| Error message                                                       | Cause                                                                                                                                      | Fix                                                                                                                          |
| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
| Sectona request to failed with log code `: ...`                     | The response envelope has IsSuccess false.                                                                                                 | Look up the log code. The instructions name 011649 (missing Manage Users) and 011683 (wrong instance name).                  |
| Sectona returned a non-JSON response from : ...                     | The server did not return JSON.                                                                                                            | Check the host, the port and any proxy or load balancer.                                                                     |
| Sectona user groups could not be read, users are kept without them: | Group call failed (log message).                                                                                                           | Give the role Manage Groups.                                                                                                 |
| Status Code:                                                        | The API answered with a status other than the one the connector expects. The message also lists the URL, the method and the response body. | Read the status code and the response body in the message, then check the credentials, the permissions and the network path. |

## Change history

{% hint style="info" %}
Available starting from version 6.9.0.
{% endhint %}
