code: public static List<String> getManagableOUs(CmsObject cms) {
  
          List<String> ous = new ArrayList<String>();
          try {
              for (CmsRole role : OpenCms.getRoleManager().getRolesOfUser(
                  cms,
                  cms.getRequestContext().getCurrentUser().getName(),
                  "",
                  true,
                  false,
                  true)) {
                  if (role.getRoleName().equals(CmsRole.ACCOUNT_MANAGER.getRoleName())) {
                      if (role.getOuFqn().equals("")) {
                          ous.add(0, role.getOuFqn());
                      } else {
                          ous.add(role.getOuFqn());
                      }
                  }
              }
          } catch (CmsException e) {
              //
          }
          return ous;
      }
docs: Gets List of managable OU names for the current user.<p>
  
  @param cms CmsObject
  @return List of String