Hide not subscribed courses to a users group

Ri: Re: Ri: Re: Ri: Re: Hide not subscribed courses to a users group

by Francesco Viali -
Number of replies: 4
Thanks,
I have some problem in understanding where to do that.
I try explaining better:
I'm creating role in Home/ Site administration/ Users/ Permissions/ Define roles
Role archetype: none
In: View list of courses you are not enrolled in (moodle/category:viewcourselist) I can only "allow" this permission, there is no way to "Prohibit"..
In reply to Francesco Viali

Re: Ri: Re: Ri: Re: Ri: Re: Hide not subscribed courses to a users group

by Randy Thornton -
Picture of Documentation writers
Francesco,

You are in the right place. To see the other permissions besides Allow, you have to first click the "Show Advanced" button, which is right above the "Filter" area. Then it will show you all the permission options, as in the attached screenshot.


Attachment screenshot_9354.jpg
In reply to Randy Thornton

Ri: Re: Ri: Re: Ri: Re: Ri: Re: Hide not subscribed courses to a users group

by Francesco Viali -
Great! found it! smile
Another question...
Do you think there is any way (maybe with a plugin) to automatically assign users to a specific (newly created) system level role based on authentication method or based on a field in user profile?
In reply to Francesco Viali

Re: Ri: Re: Ri: Re: Ri: Re: Ri: Re: Hide not subscribed courses to a users group

by Randy Thornton -
Picture of Documentation writers
Francesco,

I can think of two alternatives.

1) You can do this in bulk using the User upload to assign a system role to many users at once, https://docs.moodle.org/310/en/Upload_users#Set_system_roles. but it is not automatic, real time, it is just an easy way of doing many users at one time. So, if you have them all in a list of spreadsheet, that is easy.

2) If you need a real time way to do it, there is no one plugin to do this, but you might be able to get real time assignments using two plugins:

Step 1) Assign a user to a Cohort based on a Profile field: https://moodle.org/plugins/local_profilecohort. This is a very good plugin, I have used it on many sites.

Step 2) Assign that Cohort to a System role: https://moodle.org/plugins/local_cohortrole I have never used this plugin, but it is up to date with Moodle 3.10. It looks easy to use.


So, in that case you go from Profile field value -> Cohort -> System role. I have never done this myself, but it certainly should work smile


In reply to Randy Thornton

Re: Ri: Re: Ri: Re: Ri: Re: Ri: Re: Hide not subscribed courses to a users group

by Randy Thornton -
Picture of Documentation writers
This works actually. I set up a test with those two plugins and it assigned the users to the System role based on a custom profile field.