# Users settings

## Gets/retrieves users configuration within a company profile

<mark style="color:blue;">`GET`</mark> `https://api.aquanow.io/users/v1/companyProfile/users`

<table><thead><tr><th>Name</th><th width="209">Type</th><th>Description</th></tr></thead><tbody><tr><td>user</td><td>String</td><td>The username of the user. If no user is provided, fetches all users within a company profile</td></tr></tbody></table>

#### Headers

| Name                                          | Type   | Description                                                                                                                                                        |
| --------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| x-api-key<mark style="color:red;">\*</mark>   | String | <p><code>{{x-api-key}}</code></p><p>API Auth Key</p>                                                                                                               |
| x-signature<mark style="color:red;">\*</mark> | String | <p><code>49c6260c194f4d7ed5cb917dc70b9821673246b2abc1cf28f05df6a75fd24181e00f8e57b321d15ae45db58b3bffe27a</code></p><p>Signature created using your API secret</p> |
| x-nonce<mark style="color:red;">\*</mark>     | Number | <p><code>1657731573930</code></p><p>Timestamp in millisecond</p>                                                                                                   |

{% tabs %}
{% tab title="200: OK Get company profile users" %}
Returns an array of  [CompanyProfileAccountsObject](https://docs.aquanow.io/aquanow/data-objects-and-statuses/accounts-objects#companyprofileaccountsobject)&#x20;

```json
{
    "data": {
        "usersList": [
            {
                "username": "user1",
                "email": "user1@user.com",
                "canApprove": true,
                "canEditSettings": false,
                "withdrawalAccess": "approvalRequired",
                "canTrade": true,
                "permissionedAccounts": [
                    {
                        "accountId": "CA1000051R"
                    },
                    {
                        "accountId": "CA1000052R"
                    }
                ]
            },
            {
                "username": "user2",
                "email": "user2@user.com",
                "canApprove": false,
                "canEditSettings": true,
                "withdrawalAccess": "directAccess",
                "canTrade": false,
                "permissionedAccounts": [
                    {
                        "accountId": "CA1000051R"
                    }
                ]
            }
        ]
    }
}
```

{% endtab %}

{% tab title="200: OK Get company profile users with accountId" %}

Returns an array of  [CompanyProfileUsersObject](https://docs.aquanow.io/aquanow/data-objects-and-statuses/accounts-objects#companyprofileusersobject)&#x20;

```json
{
  "data": {
    "usersList": [
      {
        "username": "user1",
        "email": "user1@user.com",
        "canApprove": true,
        "canEditSettings": false,
        "withdrawalAccess": "approvalRequired",
        "canTrade": true,
        "permissionedAccounts": [
          {
            "accountId": "CA1000051R"
          },
          {
            "accountId": "CA1000052R"
          }
        ]
      }
    ]
  }
}
```

{% endtab %}

{% tab title="500:  Could not find any users under username" %}

```json
{
    "message": "Could not find any accounts under user: rylan4"
}
```

{% endtab %}
{% endtabs %}
