> 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/0-9/1password-account-management.md).

# 1Password Account Management

1Password is a password manager. The Account Management (Users API) integration lets OctoXLabs list the users of a 1Password account.

## Use cases

* Find 1Password Account Management accounts that have no match in your directory.

```
Adapters = one-password-account-management AND NOT Adapters = active-directory
```

* Check what one 1Password Account Management connection collected.

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination                                                                                          | Port | Protocol |
| ------------------- | ---------------------------------------------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | Selected region host: api.1password.com, api.1password.ca, api.1password.eu or api.ent.1password.com | 443  | HTTPS    |

### Required permissions

| Scope or role            | Permission | Needed for |
| ------------------------ | ---------- | ---------- |
| users.view (OAuth scope) | Read       | Users      |

Without the `users.view` scope, listing users returns 403. The integration only reads users.

## Create credentials in 1Password Account Management

{% stepper %}
{% step %}

### Open the OAuth application settings

In 1Password, go to **Integrations** (then **Directory**, if other integrations are already set up) and choose **OAuth Application**.
{% endstep %}

{% step %}

### Create the application

Choose the **Client credentials** grant type and give the application the **users.view** scope.
{% endstep %}

{% step %}

### Copy the credentials and the account ID

Copy the Client ID and the Client Secret. Note your 26-character 1Password account ID.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type    | Default           | Description                                                                                                                                                                                       |
| ------------- | -------- | ------- | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Domain        | Yes      | Choice  | api.1password.com | Regional base host. Must match the region of your account. Options: api.1password.com (US), api.1password.ca (Canada), api.1password.eu (Europe), api.ent.1password.com (ent.1password.com tier). |
| Account       | Yes      | String  | None              | 26-character 1Password account ID. Used in every Users API request.                                                                                                                               |
| Client ID     | Yes      | String  | None              | Client ID of the OAuth application.                                                                                                                                                               |
| Client Secret | Yes      | String  | None              | Client Secret of the OAuth application.                                                                                                                                                           |
| Proxy         | No       | String  | None              | Proxy address. The connector sends requests through `http://<value>`.                                                                                                                             |
| Timeout       | No       | Integer | 30                | Time in seconds to wait for API responses.                                                                                                                                                        |

## Troubleshooting

| Error message                                                          | Cause                                                                  | Fix                                                                                                                                           |
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Max retries exceeded for                                               | The adapter retried 5 times after 401 or 429 answers.                  | Check the client credentials and wait for the rate limit to reset.                                                                            |
| Status Code: `, followed by the URL, the method and the response body` | The API answered with a status other than the one the adapter expects. | Read the code and body. 401 or 403 usually points to wrong credentials or missing permissions. Check the address, port and Is Secure setting. |

## Change history

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