Limiting Access to Some Courses by Email Address Domain

Limiting Access to Some Courses by Email Address Domain

by Michael Milette -
Number of replies: 1
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

I need to restrict access for some courses on my site to users with a particular email address domain. What would be the best approach? What I don't want is to have all users in a particular domain automatically enrolled in a course. Users with the correct domain in their email address should be able to self-enrol to these corporate courses.

I don't mind developing something but would appreciate some pointers to get me going in the right direction.

Best regards,

Michael

Average of ratings:Useful (2)
In reply to Michael Milette

Re: Limiting Access to Some Courses by Email Address Domain

by Oliver Trampleasure -

Also interested in doing this, I've been trying to using autoenrol cohort but am a little confused by the syntax. Also... I would like to merge any academic email (ending in @*.ac.uk) into a single cohort which looks like it will be a relatively mammoth task (I think I could do it by putting in many replacement rules). Struggling with it at the moment.

I think that autoenrol would probably suffice for your aims though.