Docs for other versions: 2.6 / 2.5 / 2.4 / 2.3 / 2.2 / 2.1 / 2.0 / 1.9

Parent role

From MoodleDocs
Jump to: navigation, search


The role of Parent may be used to provide parents/mentors/tutors with permission to view certain information, such as activity reports, grades, blog entries and forum posts, about their children/mentees/tutees.

Note: In this page, the terms "Permissions" and "Capabilities" are used as interchangeable terms. Please bear in mind that they are in fact a pair. A capability is an editable behaviour and a permission is the value given that capability.


lightbulb.png Things are arranged differently in Moodle 2, so read carefully and change all the correct permissions.

Take a note of all changes made and keep a record. This role may need to be re-created from time to time.


Contents

Using a Custom Role

In the page Create Custom Roles, a generic Role was created and given the name of Parent. In this part, the Role is going to be linked to a Student Role, which is why the role was called "Parent". (By now there should be two additional Users in the User Accounts, say, "Perant Test" and "Stedunt Test".) Return to the Role list and see if the Role has been properly created, then click on it to start reviewing capabilities. ()

Returning to the Parent Role

Next the capabilities of this Role need to be determined. What is different in this Role that required the Role be created in the first place? As the Role has already had a Context selected for it, User, it is that area of the Capabilities that need existing permissions altered. Turn editing on and scroll down to the section named "User", look for the fields listed below and reset the values on these capabilities:

Viewing the structure of the Parent Role and turning editing on

Under the heading of Course

  1. Change moodle/user:viewdetails to allow - to access the student's profile

Under the heading of Users

  1. Change moodle/user:viewalldetails to allow - to view all aspects of the student's profile
  2. Change any/all of the following capabilities to allow

Some permissions may already be set to "Allow", or the permissions granted here may not be the ones required for that Role. This set of Permissions mean that this Role allows anyone assigned to a Parent Role, then linked to the Student Role, to edit the profile or read the blogs of that Student - not everyone's profile or blogs.

Assigning permissions to the Parent Role

Scroll to the bottom of the page and click on "Save changes"

Saving Changes to the Parent Role

When saved, Moodle automatically return to the List of all Roles page.

This changes the capabilities of the Parent Role in Moodle 2, but the Role now has to be directly linked to a Student Role to allow it to be used as it was designed to be.

Linking to the Student Profile

  • Access the child's profile page, via Site administration ► Users ► Accounts ► Browse list of users
Selecting the Student's Role

and in 'Profile settings for [username]' > 'Roles' >'Assign roles relative to this user'

Setting an assignment to that Student's Role
  • Choose the role to assign i.e. Parent
Setting an assignment to that Student's Role
  • Select the parent in the potential users list, and use the Add button to add it to the existing users list. This should already be familiar so just select the parent you want to assign to that student and click the "Add" button.
Setting an assignment to that Student's Role

At this point you can return to the "Assign roles in user:" page and you should see that the parent name is now in the "Users with Role" column.

Make sure everything is saved where it needs to be and then return to the Front Page.

NOTE:The same parent may be assigned to several students, siblings or otherwise.

Adding multiple role assignments at once

(if you are interested in assigning several parent roles en masse read the discussion at http://moodle.org/mod/forum/discuss.php?d=70539#p345127)

Adding the Mentee Block

When at the Front Page, turn editing on.

Turn editing on to access the Add Blocks block.

Go to the Add Blocks block and select the Mentees block and when it appears, click on the Configuration icon.

Configuring the Mentee block

Edit the configuration settings to suit the needs of the site. When complete, save the changes and return to the Front Page.

Setting the configuration values
NOTE:Consider carefully what options really need be set. There may be a requirement to have more than one Mentee block, so giving each block an unambiguous title becomes important.

Once saved the block should be titled Parent and if you have made the assignments properly, it will work.

Viewing activity reports

If the capability moodle/user:viewuseractivitiesreport is set to allow then a parent/mentee may view their student's activity reports and grades via the student's Profile.

On the main Profile page, there will be a list of courses. Clicking on a course title will select that course. Then, under the Activities tab, the various report and grades sub-tabs will display information relevant to the selected course. You can easily change which course you are reviewing by selecting another one on the main Profile tab.

One small hack that can make the course list a bit more readable, especially for long course lists, is to change the format to a vertical list:

  • Edit the moodle/user/view.php file and look for these lines (around line 305 in my 2.1 installation):
. format_string($mycourse->fullname) . "</a>, ";
}
else {
$courselisting .= format_string($mycourse->fullname) . ", ";
  • and change that to :
. format_string($mycourse->fullname) . "</a>,<br />";
}
else {
$courselisting .= format_string($mycourse->fullname) . "<br />";;
  • Then save

See also