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

# Get user connections network

The full list of user connections can be retrieved by calling `getUserConnectionsNetwork` query.
This query returns the list of user connections (user contexts associated with accounts who have accepted the invitation
from the current API user or whose invitation has been accepted by the current API user). Results returned with pagination
and sorted by the name (ascending by default, the order can be reversed).

The same pagination approach as in other queries is used (for example, [getCatalogData](/OpignoEnterpriseAPI/PaginatingCatalogItems)).

The following arguments can be used in the query:

| Argument  | Type      | Description                                                                                                                                                                                | Default |
| :-------- | :-------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------ |
| `after`   | `Cursor`  | Returns results that come after the specified cursor. Should be used together with `first` parameter. Cannot be used if `before` is set.                                                   | —       |
| `before`  | `Cursor`  | Returns results that come before the specified cursor. Should be used together with `last` parameter. Cannot be used if `after` is set.                                                    | —       |
| `first`   | `Integer` | Returns up to the first N elements from the list. Required if `after` parameter is set. Cannot be used together with `last`.                                                               | —       |
| `last`    | `Integer` | Returns up to the first N elements from the list. Required if `before` parameter is set. Cannot be used together with `first`.                                                             | —       |
| `reverse` | `Boolean` | Allows to change the order of the sorting to `DESC`.                                                                                                                                       | `false` |
| `name`    | `String`  | Provides the possibility to filter by the user context name. **Note:** it makes sense only if the real user name is sent to Opigno Enterprise API during the user context synchronization. | —       |

<CodeGroup>
  ```filename GraphQL theme={null}
    query getUserConnectionsNetwork {
      getUserConnectionsNetwork(first: 2) {
        edges {
          node {
            userContext {
              id
              uuid
            }
            cta {
              actionId
              title
              arguments {
                key
                value
              }
              metadata {
                key
                value
              }
            }
          }
        }
        pageInfo {
          hasNextPage
          startCursor
          endCursor
        }
        totalItems
      }
    }
  ```

  ```File Query result [expandable] theme={null}
    {
      "data": {
        "getUserConnectionsNetwork": {
          "edges": [
            {
              "node": {
                "userContext": {
                  "id": "3302",
                  "uuid": "fddab9cc-9379-4e39-b058-5709f0915ac1",
                },
                "cta": [
                  {
                    "actionId": "REMOVE_USER_CONNECTION",
                    "title": "Remove connection",
                    "arguments": [
                      {
                        "key": "userContextUuid",
                        "value": "fddab9cc-9379-4e39-b058-5709f0915ac1"
                      }
                    ],
                    "metadata": [
                      {
                        "key": "type",
                        "value": "button"
                      }
                    ]
                  }
                ]
              }
            },
            {
              "node": {
                "userContext": {
                  "id": "1514",
                  "uuid": "ef718a6f-ba7c-428c-bd5b-6d1dc07f5861",
                },
                "cta": [
                  {
                    "actionId": "REMOVE_USER_CONNECTION",
                    "title": "Remove connection",
                    "arguments": [
                      {
                        "key": "userContextUuid",
                        "value": "ef718a6f-ba7c-428c-bd5b-6d1dc07f5861"
                      }
                    ],
                    "metadata": [
                      {
                        "key": "type",
                        "value": "button"
                      }
                    ]
                  }
                ]
              }
            }
          ],
          "pageInfo": {
            "hasNextPage": false,
            "startCursor": "TzozMzoiRHJ1cGFsXG9waWdub19hcGlcV3JhcHBlcnNcQ3Vyc29yIjo0OntzOjE0OiIAKgBiYWNraW5nVHlwZSI7czoxNDoib3BpZ25vX2NvbnRleHQiO3M6MTI6IgAqAGJhY2tpbmdJZCI7aTozMzAyO3M6MTA6IgAqAHNvcnRLZXkiO3M6NToibGFiZWwiO3M6MTI6IgAqAHNvcnRWYWx1ZSI7czoxMDoiT2xoYSBSeWJhayI7fQ==",
            "endCursor": "TzozMzoiRHJ1cGFsXG9waWdub19hcGlcV3JhcHBlcnNcQ3Vyc29yIjo0OntzOjE0OiIAKgBiYWNraW5nVHlwZSI7czoxNDoib3BpZ25vX2NvbnRleHQiO3M6MTI6IgAqAGJhY2tpbmdJZCI7aToxNTE0O3M6MTA6IgAqAHNvcnRLZXkiO3M6NToibGFiZWwiO3M6MTI6IgAqAHNvcnRWYWx1ZSI7czoxNzoiU2VyZ2V5IFByb2tvcGNodWsiO30="
          },
          "totalItems": 2
        }
      }
    }
  ```
</CodeGroup>

Here is an example of our implementation of the user connections list:

<img style={{ borderRadius:"0.3rem" }} src="https://mintcdn.com/connect-i/duHonZHPe3F63_yi/images/user-connections.png?fit=max&auto=format&n=duHonZHPe3F63_yi&q=85&s=5bfb9bb2d8d5e25930c2e75599db4ae5" alt="User connections" title="User connections" width="2463" height="847" data-path="images/user-connections.png" />
