Role export and import: Difference between revisions

From MoodleDocs
No edit summary
No edit summary
Line 2: Line 2:
==Role export==
==Role export==


TODO
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.


==Role import==
The definition file includes following data:
* role name and description
* allowed context levels
* allow setting for role assignment, 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"


TODO


[[Category:Site administration]]
[[Category:Site administration]]

Revision as of 10:37, 31 October 2013

Role export

To export role definition:

  1. Go to Administration > Site administration > Users > Permissions > Define roles.
  2. Click on a role name
  3. Click "Export" button
  4. 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 setting for role assignment, overrides and role switching
  • list of permissions at the system level


Create new role from definition

To create new role:

  1. Go to Administration > Site administration > Users > Permissions > Define roles.
  2. Click "Add a new role button"
  3. Upload preset
  4. Click "Continue"
  5. Review new role and scroll down and click "Create this role"


Reset existing role to definition

To reset role:

  1. Go to Administration > Site administration > Users > Permissions > Define roles.
  2. Click on a role name
  3. Click "Reset" button
  4. Upload preset
  5. Select required reset options
  6. Click "Continue"
  7. Review changes of role definition and scroll down and click "Save changes"