code: public List<CmsGroup> readGroupsForOu(CmsObject cms, String ou, I_CmsOuTreeType type, boolean subOus)
      throws CmsException {
  
          return CmsPrincipal.filterCoreGroups(OpenCms.getOrgUnitManager().getGroups(m_cms, ou, subOus));
      }
docs: Reads the list of groups for an organizational unit.<p>
  
  @param cms the CMS context
  @param ou the OU path
  @param type the tree type
  @param subOus true if groups for sub-OUs should be read
  @return the list of groups for the OU
  
  @throws CmsException if something goes wrong