Hide course categories/courses from external users

Hide course categories/courses from external users

by Sameer Ahmed -
Number of replies: 0

Hello,

We are using Moodle 3.9. 

For authentication we used LDAP. One of our requirement is to give access to external users, we have decided to add external users to Active Directory so they will also have access to Moodle. In order to differentiate between external and internal users we are planning to use user field e.g. email address. 

Now the problem we are facing is, we want to hide course categories/courses by external or internal users (decided by user field). We can't go with the option of Roles/Cohorts access restrictions as we need to assign users to roles/cohorts in advance instead we want to this on the fly. So, every user signed into Moodle will have the same Student role and based on user field will be external or internal user and shown courses/course categories accordingly. Is there a way to achieve this in Moodle. We are open to using any Plugin as well. 

Any suggestions from the Moodle community to resolve this issue will be highly appreciated. 

Thank you,

Sameer

Average of ratings: -