code: public List<CmsGroup> getGroups(CmsObject cms, String ouFqn, boolean includeSubOus) throws CmsException {
  
          CmsOrganizationalUnit orgUnit = readOrganizationalUnit(cms, ouFqn);
          return (m_securityManager.getGroups(cms.getRequestContext(), orgUnit, includeSubOus, false));
      }
docs: Returns all groups of the given organizational unit.<p>
  
  @param cms the opencms context
  @param ouFqn the fully qualified name of the organizational unit to get all principals for
  @param includeSubOus if all groups of sub-organizational units should be retrieved too
  
  @return all <code>{@link org.opencms.file.CmsGroup}</code> objects in the organizational unit
  
  @throws CmsException if operation was not successful