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). The following arguments can be used in the query:
ArgumentTypeDescriptionDefault
afterCursorReturns results that come after the specified cursor. Should be used together with first parameter. Cannot be used if before is set.
beforeCursorReturns results that come before the specified cursor. Should be used together with last parameter. Cannot be used if after is set.
firstIntegerReturns up to the first N elements from the list. Required if after parameter is set. Cannot be used together with last.
lastIntegerReturns up to the first N elements from the list. Required if before parameter is set. Cannot be used together with first.
reverseBooleanAllows to change the order of the sorting to DESC.FALSE
nameStringProvides the possibility to filter by the user context name. Note: it makes sense only if the real user name is sent to Opigno API during the user context synchronization.
  query getUserConnectionsNetwork {
    getUserConnectionsNetwork(first: 2) {
      edges {
        node {
          userContext {
            id
            uuid
          }
          cta {
            actionId
            title
            arguments {
              key
              value
            }
            metadata {
              key
              value
            }
          }
        }
      }
      pageInfo {
        hasNextPage
        startCursor
        endCursor
      }
      totalItems
    }
  }
Here is an example of our implementation of the user connections list: User connections