Defining Roles in Moodle

In the previous article on Modifying Site Administrators in the User permissions section of Moodle Site administrators could be added to the Moodle site. Moodle 2.3 allows the administrator to create custom roles and edit the existing default roles for all the users on the site. Roles are a specified preset of permissions that allow users access to certain functions of the Moodle site. This tutorial will outline managing roles, defining roles, and Adding a new role within the Moodle Site administration.

Managing Roles in the Define Roles section

  1. Log into the Moodle Dashboard
  2. define-roles-1-select-moodle

    Navigate to Site administration > Users > Permissions > Define roles in the Settings section on the left.

    Important! Keep in mind that Editing must be turned on in the Settings section in order to edit any of these options.

  3. define-roles-2-manage-moodle

    The Define Roles page should load with the following preset roles in the list. These can be edited or deleted depending on what the administrator wants to do. Usually these roles are left as their default settings. Below is a brief explaination of the default roles.

    Default defined roles

    ManagerThis role allows access to courses in order to modify them.
    Course creatorThis role is for the user that creates the Courses.
    TeacherThe Teacher role has full permission in the courses like modifying the Courses and grading the students.
    Non-editing teacherSimilar to a teachers Aid, the courses can be taught and the quizzes graded by this user. Activities cannot be changed with this role.
    StudentMore privileges than a guest; however, nothing can be edited by the Student role.
    GuestGuests have the least privileges. Usually the site can be minimally viewed. Courses and other activities are not accessible by the Guest.
    Authenticated userAny user that logs into the site is an authenticated user.
    Authenticated user on frontpageThese users log in but only have access to the Front page.


    The Define Roles page will have 4 tabs, Manage roles, Allow role assignments, Allow Role overrides, and Allow role switches. Below is a brief description of each.

    Manage, Assign, Override, and Switch roles tabs

    Manage rolesThis section is for creating new roles or editing existing roles. Roles are a presets of permissions that allow users to access certain functions of the Moodle site.
    Allow role assignmentsThis section allows the administrator to assign roles that enable other roles to assign roles.
    Allow role overridesGives a role the ability to over ride other roles.
    Allow role switchesRoles can be set to allow them to switch to a different role.

  4. define-roles-4-add-moodle

    To create roles other than the default roles, click Add a new role. The add new role section has a voluminous list of Permission options in the List of Capabilities. Each Permission will have a Warning for the admin to see what Risk will occur if the specific Role is given the Permission .

    List of Capabilities: This is an exhaustive list of settings that the role can access. These capabilities consist allow the user to View, Edit, Add, Delete, Import, Export, Grade, and many more options.

    Show Advanced: Clicking the Show advanced button will allow the role permissions to show Not Set, Allow, Prevent, Prohibit.

    Risks: These are warnings for the administrator to consider when giving permission to a role. The following was taken directly from the Moodle Adding a new role section in Moodle.

    risk_config User can change site configuration and behavior

    risk_xss Can add files and text that allows cross-site scripting (XSS)

    risk_personal The user can gain access to other users private information

    risk_spam Can send spam to site users

    risk_dataloss Can destroy large amounts of content or information


    To Allow the permission for the specific role, click the Allow checkbox next to the Capability. Once the permissions are set, click Create this Role.

  5. define-roles-6-list-moodle

    The New role will show at the bottom of the Manage roles tab.

This concludes the article for Defining Roles in Moodle. Once the Roles are defined, roles then can be assigned. Please see the next article on Assigning system roles in Moodle. For more information on topoics in the same course, please visit Managing users and roles in Moodle

InMotion Hosting Contributor
InMotion Hosting Contributor Content Writer

InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!

More Articles by InMotion Hosting

Was this article helpful? Join the conversation!