Give all teachers site-wide Non-Editing Teacher status

Give all teachers site-wide Non-Editing Teacher status

by Matt Gray -
Number of replies: 2

Hi,

I want all teachers in my school to have a site-wide non-editing teacher status so they don't have to enrol on courses, and any teacher can cover any lesson which uses the vle.

So far, I have set non-editing teacher to be a system role, which has worked - i can manually add a teacher to the role, and they can view all courses.

The part I'm struggling with is automattically adding every member of the Teaching Staff OU in LDAP to that system role. I've investigated both the LDAP Authentication plugin (which we already use as our authentication). It has a "System role mapping" section, but as far as I can tell, it does nothing. I've put our Teaching Staff OU in the "non-editing teacher" context box, but when staff log in, nothing happens.

I've also investigated the LDAP Enrolment plugin, which we don't use. This appears to deal only with specific courses, rather than system roles, so I'm not sure this is the right thing.

Any help would be greatly appreciated.

Average of ratings: -
In reply to Matt Gray

Re: Give all teachers site-wide Non-Editing Teacher status

by Randy Thornton -

The LDAP assign system level roles definitely does work, it's been around since Moodle 3.4 now, though the setup details vary a lot based on the type of LDAP as documented (partially I suspect.) I think the issue will be in the details of that. That's the way to do it though, no need to think about the ldap enrolment.

If you can't get it to work at all, another possible approach is to use a profile field to put the users in a Cohort and then put the Cohort into the system role (as I described in that post.) It might be easier to just add a field to users instead of having to move things around in the tree and set up new ous.

Average of ratings:Useful (1)
In reply to Randy Thornton

Re: Give all teachers site-wide Non-Editing Teacher status

by Matt Gray -
Thank you - I hadn't seen that documentation. We're using MS AD, so need security groups setting up. I'll investigate the cohort plugin, too. Sounds like it might be easier.