I have a Moodle installation integrated with LDAP and based on that it makes the authentication. However, when creating a new user, i wanted Moodle to check a webservice, and based on it’s response, assign the user to a group.
Any ideas on how i can do this?
You can use this Web services..
https://github.com/patrickpollet/moodlews/blob/master/wspp/mdl_baseserver.class.php
Use this function add_group()..
May this will help you.