# List

Lists account-user links for a given account.

<mark style="color:blue;">`GET`</mark> `https://ga-services-zvqgeah36q-uc.a.run.app/ga/accounts/userlinks/list/`

#### Query Parameters

| Name                                               | Type   | Description |
| -------------------------------------------------- | ------ | ----------- |
| name<mark style="color:red;">\*</mark>             | String | ft-4        |
| connection\_name<mark style="color:red;">\*</mark> | String | ga-02       |
| account\_id<mark style="color:red;">\*</mark>      | String | 6712930     |

#### Headers

| Name                                            | Type   | Description                                                                                                                                                                                                                             |
| ----------------------------------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| x-api-key<mark style="color:red;">\*</mark>     | String | U2Fsd...                                                                                                                                                                                                                                |
| Authorization<mark style="color:red;">\*</mark> | String | ya29.a0Aa4xrXOxdvIydkYSWJzPl\_zcyGi0C2Fwlqf13ZsGI7dr4TF7F2lML3CDEgwC7YCQ2Ebswj1WZALSUjHaFR1NfhW6mLglSwPFcX0jPndxUPNJiEruM0ikYDTgbxG\_fK2gwfXH9XWFeqh0GIJ7OaCtVgu5o-D3L3Ov8MboeXDRjDoDukoaCgYKATASARMSFQEjDvL9AZgOYpou4PU0xoBbaq9bPQ0182 |

{% tabs %}
{% tab title="200: OK Success" %}
```shell
{
    "kind": "analytics#entityUserLinks",
    "totalResults": 1,
    "startIndex": 1,
    "itemsPerPage": 1000,
    "items": [
        {
            "id": "6712930:112775482771342024019",
            "kind": "analytics#entityUserLink",
            "selfLink": "https://www.googleapis.com/analytics/v3/management/accounts/6712930/entityUserLinks/6712930:112775482771342024019",
            "entity": {
                "accountRef": {
                    "id": "6712930",
                    "kind": "analytics#accountRef",
                    "href": "https://www.googleapis.com/analytics/v3/management/accounts/6712930",
                    "name": "sschouse@gmail.com"
                }
            },
            "userRef": {
                "kind": "analytics#userRef",
                "id": "112775482771342024019",
                "email": "sschouse@gmail.com"
            },
            "permissions": {
                "effective": [
                    "COLLABORATE",
                    "EDIT",
                    "MANAGE_USERS",
                    "READ_AND_ANALYZE"
                ],
                "local": [
                    "EDIT",
                    "MANAGE_USERS"
                ]
            }
        }
    ]
}
```
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="cURL" %}
```shell
curl --location --request GET 'https://ga-services-zvqgeah36q-uc.a.run.app/ga/accounts/userlinks/list?name=ft-4&connection_name=ga-02&account_id=6712930' \
--header 'x-api-key: U2Fsd...' \
--header 'Authorization: ya29.a0Aa4xrXOxdvIydkYSWJzPl_zcyGi0C2Fwlqf13ZsGI7dr4TF7F2lML3CDEgwC7YCQ2Ebswj1WZALSUjHaFR1NfhW6mLglSwPFcX0jPndxUPNJiEruM0ikYDTgbxG_fK2gwfXH9XWFeqh0GIJ7OaCtVgu5o-D3L3Ov8MboeXDRjDoDukoaCgYKATASARMSFQEjDvL9AZgOYpou4PU0xoBbaq9bPQ0182'
```
{% endtab %}

{% tab title="NodeJs - Axios" %}
```javascript
var axios = require('axios');

var config = {
  method: 'get',
  url: 'https://ga-services-zvqgeah36q-uc.a.run.app/ga/accounts/userlinks/list?name=ft-4&connection_name=ga-02&account_id=6712930',
  headers: { 
    'x-api-key': 'U2Fsd...', 
    'Authorization': 'ya29.a0Aa4xrXOxdvIydkYSWJzPl_zcyGi0C2Fwlqf13ZsGI7dr4TF7F2lML3CDEgwC7YCQ2Ebswj1WZALSUjHaFR1NfhW6mLglSwPFcX0jPndxUPNJiEruM0ikYDTgbxG_fK2gwfXH9XWFeqh0GIJ7OaCtVgu5o-D3L3Ov8MboeXDRjDoDukoaCgYKATASARMSFQEjDvL9AZgOYpou4PU0xoBbaq9bPQ0182'
  }
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

```
{% endtab %}

{% tab title="PHP - cURL" %}
```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://ga-services-zvqgeah36q-uc.a.run.app/ga/accounts/userlinks/list?name=ft-4&connection_name=ga-02&account_id=6712930',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'x-api-key: U2Fsd...',
    'Authorization: ya29.a0Aa4xrXOxdvIydkYSWJzPl_zcyGi0C2Fwlqf13ZsGI7dr4TF7F2lML3CDEgwC7YCQ2Ebswj1WZALSUjHaFR1NfhW6mLglSwPFcX0jPndxUPNJiEruM0ikYDTgbxG_fK2gwfXH9XWFeqh0GIJ7OaCtVgu5o-D3L3Ov8MboeXDRjDoDukoaCgYKATASARMSFQEjDvL9AZgOYpou4PU0xoBbaq9bPQ0182'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

```
{% endtab %}
{% endtabs %}
