There are APIs available in Moodle. You could create a webservice and use the core_user_update_users API. See https://docs.moodle.org/dev/Creating_a_web_service_client
General help
Authentication and user details
This discussion has been locked so you can no longer reply to it.