Students automatically enrolled on all courses

Students automatically enrolled on all courses

by Darren Smith -
Number of replies: 22

Hello,

When adding users to the site wide students role it would appear to enrol them in every course on the site. Reading through the forum this seems to be the way it is supposed to work.mixed Is there a way to stop this? I want them in the group but not enroled on every course.

I have created a copy of students (called restricted students) and altered some settings for the naughty boys and girls that need to be controlled tighter and this also enrols them in every single course. I really don't fancy going through every course they are in and apply the role for every kid.sad

Thanks

Average of ratings: -
In reply to Darren Smith

Re: Students automatically enrolled on all courses

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

HI there - how about making your new role legacy type none -and then preventing the permissions you want the student to have -then system wide assign your students to that role? It should work - I have done this for a few pupils who were banned from the messaging system for example.

In reply to Mary Cooch

Re: Students automatically enrolled on all courses

by Darren Smith -

Thanks for the prompt reply.

I changed the legacy role type to none in the define system roles for the restricted role and altered some settings for prohibiting forum posting.

Using the login as feature I went in as one of the students but he was still enrolled on every course on the site mixed

In reply to Darren Smith

Re: Students automatically enrolled on all courses

by Greg Jeffrey -

Hi Darren

Any setting you make at root level will naturally be site-wide.  The same goes for teachers.  With 120 plus staff and well over 100 courses this would be a double nightmare for us. 

Step one - we have created Categories (Curriculum subject areas) for all of our courses and Assigned standard Teacher roles at this level so, for example, our English teacher has access to all English courses but not others.

Step two - As a UK school (as I see you are) using CMIS we have installed Guy Thomas' Facility to Moodle block and can easily add (standard) students, by class to individual courses.  There is a similar one for SIMS I believe.  Alternatively I suppose you could create your Category tree by year-group but that (for us) would mess up our teacher config. and makes no allowance for class groups etc..

As for 'Naughty Students' - not too keen on the concept (though I recognise the problem!!).  The only restriction we have is the Message Restriction block.  Beyond that it is a Teaching Staff / behaviour issue, just as it would be in the classroom environment and not something we want to restrict sitewide as techies (yet!)

Average of ratings: Useful (1)
In reply to Darren Smith

Re: Students automatically enrolled on all courses

by Randy Orwin -
Hi Darren,

As pointed out by Greg, if you add a user to the student role at the site level, by default they will be enrolled in every course on the site, even if you don't want them in a particular course. My question is why do you want them to be a student at the site level? What are you trying to accomplish by adding them to this role? If you can be a bit more specific maybe we can help to provide you with a better solution.
In reply to Randy Orwin

Re: Students automatically enrolled on all courses

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
Hi again Darren.
  • Just to clarify: am I right in presuming you know about not having students assigned the role sitewide and that they should be only students within their courses, yes?
  • But you want to tweak the student role so that some naughty students are prevented from doing certain things?
  1. Make sure you have no students assigned sitewide -they should all be assigned the role within their own courses
  2. Make a new role based on authenticated user and in it, set to prevent the things you want to prevent
  3. Now in assign system roles,assign the naughty students to only this role.
It should now be that they are still regular students in their courses but they can't do the stuff you want to ban them from.
Average of ratings: Useful (1)
In reply to Mary Cooch

Re: Students automatically enrolled on all courses

by Darren Smith -
Hmmmm. My naughty list was based upon modification of the student role and not authenticated users. I will try that in the morning.

Thanks.
In reply to Randy Orwin

Re: Students automatically enrolled on all courses

by Darren Smith -
Randy,

Thanks for the response. I haven't been a moodler for about 3 years so I haven't really played with roles before.

My tinkering this afternoon followed this sequence:

Put a choice on the front page which told students it was unavailable.
Changed front page default role to students but that didn't fix it.
Added a chunk of kids as site wide students and that fixed it but enrolled them in all courses (which I didn't pick up on)
Student A tries to upload pornographic image for his avatar
Student B posts stupid things to a test forum (in a text course)
Created restricted role based on student and prohibited profile edit and forum posts and dropped those kids in
Realised all students were subscribed to all courses so took them out of site wide student role
Left the naughty kids in the restricted role
Posted here smile

Unfortunately the nature of our kids mean some of them will abuse their privileges regardless of how many times they are spoken to / told off / excluded / whatever so I need to take some freedoms away from them site wide if they abuse the system.
In reply to Darren Smith

Re: Students automatically enrolled on all courses

by Jon Witts -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Darren,

For creating site-wide (and for that matter available in any context if the admin allows it!) roles to limit the options of the default course student role; have a look at this: Blogger_role

I have used this and some variations of it to create a role that can stop a student from using blogs across the whole site; stop them posting in any forums in a course, or stop them posting in a particular forum.

You should never put anyone in the default roles at a site level; there really is no need.

Jon
In reply to Jon Witts

Re: Students automatically enrolled on all courses

by Darren Smith -

OK, I think I am pretty much there. tongueout

I created a new role based upon nothing and used prohibit and that seems to block them from what I want site wide but does not enrol them anywhere other than where they should be.

This may be the wrong place to ask but it is probably linked - anyone any idea why my choice on the front page is saying it is not available when a student clicks on it? (student as in a child in my school - not the role as they have all been removed from the site wide student role now)

Thanks

In reply to Darren Smith

Re: Students automatically enrolled on all courses

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
Hi Darren - glad you are almost there! The front page is a course like any other and so if you want students to complete an activity on your front page then they have to have student role on the front page
In reply to Mary Cooch

Re: Students automatically enrolled on all courses

by Greg Jeffrey -

and if they have the student role on the front page it cascades down to other courses...  We have a miscellaneous course so that if I want anything that requires interaction it goes there.  I then create a direct link from the front page if I want it.

G

In reply to Greg Jeffrey

Re: Students automatically enrolled on all courses

by Darren Smith -
Cheers. That may have to be the way I go but it would be a shame if I can't manage it directly on the front page.

I was hoping setting the default role to student in the front page settings would fix it but it seemed to make no difference at all. mixed
In reply to Darren Smith

Re: Students automatically enrolled on all courses

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
Darren - I set my default role to student on the front page and then it seemed to work for me when setting up a choice...thoughtful
In reply to Mary Cooch

Re: Students automatically enrolled on all courses

by Darren Smith -

Was this in

admin > front page > front page settings

or

admin > front page >  front page roles

?

Thanks

In reply to Darren Smith

Re: Students automatically enrolled on all courses

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
front page settings>default front page role =student
Average of ratings: Useful (1)
In reply to Mary Cooch

Re: Students automatically enrolled on all courses

by Darren Smith -

That did it, thanks!

I wonder if that means admin > front page > front page settings default role=students is broken as, in my mind, that should do the same thing mixed

In reply to Darren Smith

Re: Students automatically enrolled on all courses

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators

I don't understand what you mean Darren - this  you refer to admin > front page > front page settings default role=students  -isn't that what I said?

In reply to Mary Cooch

Re: Students automatically enrolled on all courses

by Darren Smith -
I thought you meant you went in to the 'front page role' setting and added them all as students. No idea why I thought that. I need some sleep I think smile

Front page settings doesn't work for me but front page role does.
In reply to Darren Smith

Re: Students automatically enrolled on all courses

by Jon Witts -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
I think it does exactly what it should Darren. It applies the role of student as default to all users of the front page; but only to the front page! If you start applying site-wide roles then, as you have discovered, they apply through=out the whole site...

Jon

admin/setting/frontpagesettings#Default_front_page_role
In reply to Jon Witts

Re: Students automatically enrolled on all courses

by Darren Smith -
I understand but it didn't work mixed
In reply to Darren Smith

Re: Students automatically enrolled on all courses

by Jon Witts -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Have you reset all of the default / legacy roles back to their default settings?
In reply to Greg Jeffrey

Re: Students automatically enrolled on all courses

by Mary Cooch -
Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
How do you mean it cascades down to other courses Greg?