When you want to increase a student's permissions in a specific way how do you do that without compromising privacy or security? For example you might want a student to manage posts within a single forum e.g. edit posts of others or split discussions that have gone off-topic. Everywhere else in the course, these students must have exactly the same permissions as other students.

This could be achieved by giving these trusted students the role of non-editing teacher. While this would enable them to manage posts in a particular forum, it would also allow them to do other things such as rate posts if ratings were enabled, which may not be desirable.

The only way to add specific capabilities to a user is to create a bespoke role and give that role to the individuals concerned. For the rest of this post, I will go through how you do it. Note, you do need to be an administrator to do this so teachers in courses will have to resort to giving individual students a higher role if the administrator has not created a new role.

So, what is a role? Well, a role is a set of permissions and capabilities that are grouped together so you can give those permissions to specific users. As a rule of thumb, if more than one role is given to a particular user, then the higher role will take precedence.

How to create a role in Moodle 2.7

While the process is relevant to all Moodle 2 versions, I am doing this example using 2.7.

Navigate to Users > Permissions > Define roles. The Define roles page shows all the roles available in the site; their position in the table relates to the hierarchy within the roles. To create your bespoke role, click the [ Add a new role ] button.

Moodle permissions in Moodle 2.7

Once the Adding a new role page appears, you can opt to populate the role with settings from one of the standard Moodle roles, or to load a role preset file that you may have got from another Moodle site. Now, as we only want our new role to have specific permissions, we click Continue to move on so that we can define our role.

Give the role a shortname (lowercase, no spaces, unique), a full name (in this case Edit forum) and a description (for your information). In a series of checkboxes, you can choose where the role can be assigned.

Moodle permissions in Moodle 2.7

Now we can filter for the forum capabilities that we want to add to the role. To do this, in the Filter box, type in the keyword which in our case is Forum, which will filter out all but the forum capabilities.

Moodle permissions in Moodle 2.7

As we want our role to edit posts and split threads, we need to locate the capabilities associated with these actions, namely Edit any post and Split discussions, and set them to Allow.

Click the [Save changes ] button.

How to give a user the role in Moodle 2.7

Now that the role has been created, teachers can give that role to individual users either at a course level or in individual activities. Applying a role at course level is done through Course administration > Users > Enrol users in the same way you would enrol a user into a course (see below).

Moodle permissions in Moodle 2.7

To give a role to a user at activity level role, go into the activity (in our case that would be the forum) and from the Administration block navigate to Forum administration > Locally assigned roles.

Moodle permissions in Moodle 2.7

Here, click the course level role (in our case this is Edit forum) you want to add the user to - just select the user in the right hand pane and click  [ Add ] to give them the role.

Moodle permissions in Moodle 2.7

When the student now enters this forum and views posts, they see the following which allows them to manage posts within the forum;

Moodle permissions in Moodle 2.7

Below is an example of a post they would see if they had been given the role of non-editing teacher in the same forum showing that using bespoke roles is a great way for you to add specific actions to individuals in a particular context;

Moodle permissions in Moodle 2.7

Where else can I use this?

Other examples of where you may want to use this as follows;

  • Temporary teachers in a school or course developers working on your Moodle site who require access as an editing teacher but who you do not want to backup courses
  • Certain students or non-teaching staff to be able to approve glossary or database entries
  • Trusted pupils who you want to be able to enrol other pupils into courses for school clubs

…the list goes on!

‹‹ Previous Next ››

Related posts

Why eLearning For Healthcare Professionals Can Save Lives

The healthcare sector has never been under more pressure to adapt to a rapidly changing world. The COVID-19 pandemic has put strain on healthcare workers globally, forcing doctors, nurses, cleaners, receptionists, manufacturers of medical equipment, pharmacists and more to change their working practices at a moment’s notice, and right now, there is no business as usual.

Hubken’s 10 Tips for Happy Homeworking

While working from home has been on the rise for years, thanks to the technologies that enable it, few could have imagined that there would be a mass move to it as a result of the Coronavirus outbreak.

Perhaps this might see an even bigger move to homeworking when the crisis is over.

Blended Learning: The best of both worlds?

It’s vital for any organisation to have an effective training strategy to upskill and motivate employees. Blended learning offers a flexible and highly effective solution.

It combines the best of online learning with more traditional face-to-face, or in classroom, learning.