> ## Documentation Index
> Fetch the complete documentation index at: https://help.cryptolens.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Associate

> Associates a user with a customer object. Please note that calling this method requires a UserAuthAdmin token.

Associates a user with a [customer object](/api-reference/generated/model/Customer). Please note that calling this method requires a UserAuthAdmin token.

This method is accessed by [https://api.cryptolens.io/api/userauth/Associate](https://api.cryptolens.io/api/userauth/Associate)

### Parameters

| **Parameter** | **Description** | **Remarks** |
| - | - | - |
| Username | The username | required |
| CustomerId | The customer id | optional |
| v | Method version. | optional. by default, it's 1. |

### Results

| **Parameter** | **Description** | **Remarks** |
| - | - | - |
| Result | This is either **0**(=success) or **1**(=error). | always returned |
| Message | The message that provides additional information about the result. | always returned. |

### Example results

```text theme={null}
{"result":0,"message":""}
```

### Errors

| **Error** |
| - |
| Access denied. |
| The input parameters were incorrect. |
| Username does not exist. |
| Customer not found. |
