docs: protected CmsUserSearchParameters getSearchParams() throws CmsException {
  
          CmsListState state = getListState();
          CmsUserSearchParameters params = new CmsUserSearchParameters();
          String searchFilter = state.getFilter();
          params.setSearchFilter(searchFilter);
          if (!otherOrgUnitsVisible()) {
              CmsOrganizationalUnit ou = OpenCms.getOrgUnitManager().readOrganizationalUnit(getCms(), getParamOufqn());
              params.setOrganizationalUnit(ou);
          }
          params.setPaging(getList().getMaxItemsPerPage(), state.getPage());
          CmsRole role = CmsRole.valueOf(getCms().readGroup(getParamRole()));
          Set<CmsGroup> roleGroups = OpenCms.getRoleManager().getRoleGroups(getCms(), role, false);
          params.setAnyGroups(roleGroups);
          params.setSorting(getSortKey(state.getColumn()), state.getOrder().equals(CmsListOrderEnum.ORDER_ASCENDING));
          params.setFilterByGroupOu(false);
          return params;
      }