Role export and import: Difference between revisions
From MoodleDocs
(updated as per 2.7 English doc page) |
Helen Foster (talk | contribs) (clearer wording as suggested by Tommy Peterson in MDL-65871) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{Roles}} | {{Roles}} | ||
==Export role definition to file== | |||
To export role definition: | |||
#Go to ''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 (import) from definition== | |||
To create new role (to import a previously exported role definition): | |||
#Go to ''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" | |||
==Import changes to existing role definition== | |||
To reset or change an existing role by importing a definition you exported elsewhere: | |||
#Go to ''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" | |||
[[Category:Site administration]] | |||
[[ | [[es:Importar y exportar roles]] | ||
[[de:Rollen importieren und exportieren]] | |||
[[ | [[fr:Importation et exportation de rôles]] |
Latest revision as of 12:29, 13 June 2019
Export role definition to file
To export role definition:
- Go to 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 (import) from definition
To create new role (to import a previously exported role definition):
- Go to 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"
Import changes to existing role definition
To reset or change an existing role by importing a definition you exported elsewhere:
- Go to 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"