Role export and import: Difference between revisions
From MoodleDocs
No edit summary |
|||
Line 11: | Line 11: | ||
* role name and description | * role name and description | ||
* allowed context levels | * allowed context levels | ||
* allow | * allow settings for role assignments, overrides and role switching | ||
* list of permissions at the system level | * list of permissions at the system level | ||
==Create new role from definition== | ==Create new role from definition== |
Revision as of 10:40, 31 October 2013
Export role definition to file
To export role definition:
- Go to Administration > Site administration > Users > Permissions > Define roles.
- Click on a role name
- Click "Export" button
- XML file containing definition of the role is downloaded to your computer.
The definition file includes following data:
- role name and description
- allowed context levels
- allow settings for role assignments, overrides and role switching
- list of permissions at the system level
Create new role from definition
To create new role:
- Go to Administration > Site administration > Users > Permissions > Define roles.
- Click "Add a new role button"
- Upload preset
- Click "Continue"
- Review new role and scroll down and click "Create this role"
Reset existing role to definition
To reset role:
- Go to Administration > Site administration > Users > Permissions > Define roles.
- Click on a role name
- Click "Reset" button
- Upload preset
- Select required reset options
- Click "Continue"
- Review changes of role definition and scroll down and click "Save changes"