Community owner and members can invite other users from their network to the community. To get the list of possible invitees, getPossibleCommunityInvitees should be used.
Members can invite other users only to the public communities.Users associated with the ADMINISTRATOR scope can invite any other user who is not a member of the community yet.
The query returns the list of user contexts who can be invited to join the given community. Results will be returned with pagination and sorted by the name (ascending by default, the order can be reversed). The following arguments can be used in the query:
ArgumentTypeDescriptionDefault
communityIdIDRequired. ID of the community to get the list of the user contexts who can be invited to.
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 Enterprise API during the user context synchronization.
  query getPossibleCommunityInvitees {
    getPossibleCommunityInvitees(communityId: 3, first: 2) {
      edges {
        node {
          id
          displayName
          uuid
        }
      }
      totalItems
    }
  }
For every returned user context createCommunityInvitation mutation can be executed.