> 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/r/rsa-archer-csv-users.md).

# RSA Archer CSV Users

This adapter imports a CSV file exported from RSA Archer. OctoXLabs reads the file from the connector media folder and maps its columns to user records.

## Use cases

* List users imported from the Archer CSV.

```
Adapters = rsa-archer-csv-users
```

## Before you begin

### Network

| Source         | Destination                                                     | Port           | Protocol       |
| -------------- | --------------------------------------------------------------- | -------------- | -------------- |
| Not applicable | The adapter reads a local file. It makes no network connection. | Not applicable | Not applicable |

### Required permissions

| Scope or role      | Permission | Needed for                                     |
| ------------------ | ---------- | ---------------------------------------------- |
| File system access | Read       | The CSV file in the connector media/csv folder |

The connector must be able to read the file. Check the file permissions.

## Prepare the CSV file

{% stepper %}
{% step %}

### Export the data

Export the data from RSA Archer as a CSV file.
{% endstep %}

{% step %}

### Copy the file

Copy the file to `/opt/octoxlabs/connector/media/csv` on the server that runs the connector.
{% endstep %}

{% step %}

### Check permissions

Make sure the connector can read the file, then run a connection test.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter      | Required | Type   | Default | Description                                                                                                                       |
| -------------- | -------- | ------ | ------- | --------------------------------------------------------------------------------------------------------------------------------- |
| Filename       | Yes      | String | None    | Name of the CSV file, or a glob pattern. The newest matching file in the folder is used. Absolute paths and `..` are not allowed. |
| Email Field    | No       | String | Email   | Column that holds the user email. It is the user primary key.                                                                     |
| Separator      | No       | String | ,       | CSV separator character (one character).                                                                                          |
| List Separator | No       | String | \|      | Separator for multi-value cells (one character).                                                                                  |
| Quote Char     | No       | String | "       | Quote character used in the file (one character).                                                                                 |

## Troubleshooting

| Error message                                                                 | Cause                                                                                                                                      | Fix                                                                                                                          |
| ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
| File not found with this pattern.                                             | No file in the folder matches Filename, or the match is outside the folder.                                                                | Copy the file to the connector media/csv folder and check the name and permissions.                                          |
| No such file.                                                                 | The resolved path is not a regular file.                                                                                                   | Check the file name and permissions.                                                                                         |
| An absolute path is not allowed; give a name relative to the adapter's folder | Filename is an absolute path.                                                                                                              | Give only the file name.                                                                                                     |
| '..' is not allowed; the file must stay inside the adapter's folder           | Filename contains a `..` segment.                                                                                                          | Give only the file name.                                                                                                     |
| 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
