How to Import & Export Role Definitions in Moodle

Beginning with Moodle 2.6 is the ability to Import and Export Role definitions. This allows you to share your role definitions, or use them on other Moodle sites. In this tutorial we will show you how to Import and Export Role Definitions in Moodle.

Exporting Role Definitions

  1. Login to your Moodle Administrator Dashboard.
  2. In the Administration section, click Site administration–>Users–>Permissions–>Define roles. The image below shows you what order to click them in.
    Accessing Moodle role settings

  3. On the next page, click the Role you want to export. In my tests, I am exporting the Manager role.
  4. You will now see a summary of the role you selected, click the Export button. You will then download the .xml file containing the role definitions.
    Moodle Role settings

Importing Role Definitions

  1. Login to your Moodle Administrator Dashboard.
  2. In the Administration section, click Site administration–>Users–>Permissions–>Define roles. The image below shows you what order to click them in.
    Accessing Moodle role settings

  3. Click the Add a new role button on the bottom. You will then be on the Adding a new role page.
  4. In the Use role or archetype menu, choose the type of role you want to import. Drag & drop the .xml file into the available field, then click the Continue button.
    Adding a new role in Moodle

    The role definitions will then be imported, and you will be able to use them in your Moodle site.

Congratulations, now you know how to import and export Role definitions in Moodle website!

JB
John-Paul Briones Content Writer II

John-Paul is an Electronics Engineer that spent most of his career in IT. He has been a Technical Writer for InMotion since 2013.

More Articles by John-Paul

Was this article helpful? Join the conversation!

Server Madness Sale
Score Big with Savings up to 99% Off

X