how to give user access to all courses in category without enrolment

how to give user access to all courses in category without enrolment

by m question -
Number of replies: 8

Hi,

how to give user access to all courses in category without enrol user to all courses

I want the department head to access all courses and view report but I do not want to enrol for two reasons:

1) front page (and all my courses menues) will have a lot of courses and it will be difficult to view his/her "real" courses

2)each category has  many courses and I do not want to enrol them manually (here I can use category enrolment) 


I did the following :

create new role with needed permission

role context is category/course/activity module & capabilities/enrol/category:synchronised set to allow assign role to user in category level

but user still can not access the courses

so what the point of assigning the user to category level? I can use the category enrolment plugin but user will have too many courses

I did ask this question before and the solution I came up with is to enrol manually to all courses (we have hundreds of courses) I want to make sure if I understand well category enrollment concept

 or is there a ways to view courses based on role user has .

for example , user can view to menue one he is student other he is teacher or any roles???

 I really need help in this , thank you in advance :S



Average of ratings: -
In reply to m question

Re: how to give user access to all courses in category without enrolment

by Mary Evans -

I'm not qualified to give the correct answer to this question, but if I were to do this in my own Moodle test server I would first creat a new Role called Course Member and then select the permissions you think are appropriate.

When this has been saved, you can then assign this role to the people you want to read the course material specified for that role type.

It should work in much the same way Guest users can acces some courses but not others. The need to also to allow 'Course Member' to selfi enrol.

This is just a wild guess, but you need to explore what is available to you within the context of Moodle permissions and roles generally.

Also the problem with Categories, these are just names for boxes that courses fit into as the Course takes presidence over Category.

Cheers

Mary

PS: I deleted the post in Themes forum as this is nothing to do with themes...this is purely general stuff.

Average of ratings: Useful (1)
In reply to Mary Evans

Re: how to give user access to all courses in category without enrolment

by m question -
thank you it is ok , I was not sure if there is theme can make this , so  I asked
before knowing about essentail I was searching how to make slider and took me time , I wanted to make sure there is not already theme has the ability to show courses based on  role

I do not understand your suggestion well :S I did create role and give it the premission needed
then I used category enrolment to assign the user with that role
and there I have the problem that user have too many courses
and user should be asigned not enrol him self as the requirement stated
thanks


In reply to m question

Re: how to give user access to all courses in category without enrolment

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
Hello there. I do think the way to go is to enable the Category enrolments plugin, even though you are not keen on this. You can then make a new role with the context and capabilities as you have done before, assign them to the category and it will then work.
In reply to Mary Cooch

Re: how to give user access to all courses in category without enrolment

by m question -
thank you
when  I do this , the user will have toooo many courses in fron page or course menue(hudereds)
while he/she want to access the courses he teach easily and frequently
while when I enrol user using category enrolment, he will have one list of courses
and it will be too long

this is my issue I thought it could be solved by theme
in essenail there is header ( i am not sure what it called now ) I want it not to show all courses
but all courses with Teacher role so in front page and in navigation block he will see all courses he supervised and teach while in this header menue link in the picture he/she can view only courses he teach(with specific role) . it is usibility issue I think




In reply to m question

Re: how to give user access to all courses in category without enrolment

by William Lu -
Picture of Particularly helpful Moodlers

To enrol Heads of Schools, do like this: https://moodle.org/mod/forum/discuss.php?d=269048#p1161689

As you said, their name will show in the course participants and the courses will show in Heads' mymoodle page.

To allow view ALL courses 'secretly', just create a System role and turn off some accesses (You shouldn't give too much power to this Heads). Then, they can check any course via 'Site administration > Courses'. No teacher nor student will know a big brother are watching!

Sorry, the system role won't limit the Heads to see other departments courses, if they are curious, no way to stop them at this moment. Hope other people can suggest a better solution.  

In reply to William Lu

Re: how to give user access to all courses in category without enrolment

by m question -
thanks, I did not think of system role
I might give it to one user which will be better but for the heads they should nto view other coruses :S

thanks again
In reply to m question

Re: how to give user access to all courses in category without enrolment

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

The problem you will then have is that the users are not actually 'enrolled' in the courses. Assigning them the role in the course (or category, or system) is not the same thing. To work properly they need to have both the role AND be enrolled. If you don't do that, weird things may happen. 

In reply to Howard Miller

Re: how to give user access to all courses in category without enrolment

by m question -
when they enrolled , they will receive notification of all news forum

I did not include the heads for the groups, and create groups for all courses

however, many teachers do not use the groups so the heads complaining about that they receive large number of emails

thanks