code: protected CmsUserSearchParameters getSearchParams() throws CmsException {
  
          CmsListState state = getListState();
          CmsUserSearchParameters params = new CmsUserSearchParameters();
          String searchFilter = state.getFilter();
          params.setSearchFilter(searchFilter);
          params.setPaging(getList().getMaxItemsPerPage(), state.getPage());
          params.setSorting(getSortKey(state.getColumn()), state.getOrder().equals(CmsListOrderEnum.ORDER_ASCENDING));
          String groupStr = getParamGroup();
          if (!CmsStringUtil.isEmpty(groupStr)) {
              CmsGroup group = getCms().readGroup(getParamGroup());
              params.setGroup(group);
          } else {
              List<CmsOrganizationalUnit> ous = OpenCms.getRoleManager().getManageableOrgUnits(getCms(), "", true, false);
              params.setAllowedOus(ous);
          }
          if (getParamFlags() != null) {
              int flags = Integer.parseInt(getParamFlags());
              params.setFlags(flags);
          }
          params.setCaseSensitive(false);
          return params;
      }
docs: Gets the user search parameters.<p>
  
  @return the user search parameters
  
  @throws CmsException if something goes wrong