Hey,
I have been brainstorming about this issue for quite some time now and cannot seem to find a suitable solution for it in any plugin.
In our company we have divided users into internal/external/partner users and each of those should only be able to see specific courses. Previously we only had internal users accessing moodle but now we need to provide certain courses to externals and partners as well.
My train of thought was if I could automatically add users to certain cohorts once their account gets created or they login I can then based on that let them see specific courses based on their cohort. This would be possible as
- internal users have name@companyname.com
- external users have name@external.companyname.com
- and partner users have name@partner.companyname.com
There are a few plugins that kind of achieve what I need but f.e. https://moodle.org/plugins/local_profilecohort/versions only takes values from custom profile fields. I also tried it this way but then I would need to somehow automatically fill out the custom profile field as I do not want to manually assign each user its company allocation.
Maybe I am thinking way too complicated here. Is there some simpler way to do this? Do you have another idea on how to achieve this?
Thanks for any help!
