Halp!! External Database plugin question

Halp!! External Database plugin question

by Susan Mangan -
Number of replies: 0

I did post below already so I apologize for double posting!!  But I'm not sure I phrased my question the right way so I wanted to give it another try in hopes for a response.

We are using Moodle v 3.5 with the External Database plugin for enrolments and I would like to choose the option to suspend users once they are removed from the external database source to automatically remove student access at the end of the semester.

However, I do not want to suspend the Teacher's role.

Is it possible to do this using the "Remote Other User" field option? Looking at the code it seems like anyone flagged as being "Other user" remains enrolled?

Failing that, the only way I can see to do this is:

1) never remove teacher roles from the external database source,

2) run some sort of stored procedure to update all Teacher roles to Manual before the end of the semester or

3) hack the code to ignore teacher roles

Thank you for any input!!!

Average of ratings: -