code: public List<Group> getGroups(String search, int page, int perPage) throws GitLabApiException {
          Form formData = new GitLabApiForm().withParam("search", search).withParam(PAGE_PARAM, page).withParam(PER_PAGE_PARAM, perPage);
          Response response = get(Response.Status.OK, formData.asMap(), "groups");
          return (response.readEntity(new GenericType<List<Group>>() {}));
      }
docs: Get all groups that match your string in their name or path.
  
  @param search the group name or path search criteria
  @param page the page to get
  @param perPage the number of Group instances per page
  @return a List containing matching Group instances
  @throws GitLabApiException if any exception occurs