Hi,
I have 2 instances of moodle that I am working with. Both versions 2.1.2.
In both the instances I have the external database enrolment enabled and setup.
I understand that the database enrolment works in co-relation with user_enrolments table and role_assignments table.
1st instance
I populate the user_enrolments table and the role_assignments table via my java code.
And the enrolment does work.
If I do not populate the tables , enrolment doesn't work. All is good.
2nd instance
I do not populate the table via my code. But I see the entries getting automatically populated.
And the enrolment obviously works.
So Question is : What is the thing that causes the role_assignments and user_enrolments to be automatically populated.
Where is this configured and at what level is the configuration done?
Any inputs would b greatly appreciated.