code: public void setUsersOrganizationalUnit(CmsObject cms, String ouFqn, String userName) throws CmsException {
  
          CmsOrganizationalUnit orgUnit = readOrganizationalUnit(cms, ouFqn);
          CmsUser user = cms.readUser(userName);
          m_securityManager.setUsersOrganizationalUnit(cms.getRequestContext(), orgUnit, user);
      }
docs: Moves an user to the given organizational unit.<p>
  
  @param cms the opencms context
  @param ouFqn the full qualified name of the organizational unit to add the user to
  @param userName the name of the user that is to be added to the organizational unit
  
  @throws CmsException if something goes wrong