Magento core patch generates moodle user when user registers in magento. Use together with magentowebservice.