Managing roles: Difference between revisions
Helen Foster (talk | contribs) (Resetting a role) |
Helen Foster (talk | contribs) (roles capabilities) |
||
Line 44: | Line 44: | ||
The 'Allow role switches' tab is for setting which roles a user may switch to, based on which roles they already have. In addition to an entry in this table, a user must also have the moodle/role:switchroles capability to be able to switch. | The 'Allow role switches' tab is for setting which roles a user may switch to, based on which roles they already have. In addition to an entry in this table, a user must also have the moodle/role:switchroles capability to be able to switch. | ||
== Reset Role to defaults== | |||
Note: This also resets all overrides for that role. | |||
==Roles capabilities== | |||
*[[Capabilities/moodle/role:manage|Create and manage roles]] | |||
*[[Capabilities/moodle/role:assign|Assign roles to users]] | |||
*[[Capabilities/moodle/role:switchroles|Switch to other roles]] | |||
[[es:Gestionar_roles]] | [[es:Gestionar_roles]] | ||
Line 50: | Line 60: | ||
[[ja:ロールの管理]] | [[ja:ロールの管理]] | ||
[[de:Rollen verwalten]] | [[de:Rollen verwalten]] | ||
Latest revision as of 08:09, 25 April 2012
An administrator can manage roles in Settings > Site administration > Users > Permissions > Define roles.
Manage roles
The 'Manage roles' tab contains a list of roles on your site. The edit column contains icons for editing, deleting roles and copying roles, and for moving them up or down in the list (affecting the way that roles are listed around Moodle).
To edit a role:
- Go to Settings > Site administration > Users > Permissions > Define roles.
- Click the edit icon opposite the role you want to edit e.g. student.
- On the edit role page, change permissions as required for each capability.
- Scroll to the bottom of the page and click the "Save changes" button.
See Creating custom roles for information about adding a new role.
Resetting a role
To reset a role back to the default permissions:
- Go to Settings > Site administration > Users > Permissions > Define roles.
- Click on the name of the role, for example "student".
- Click the 'Reset to defaults' button.
Allow role assignments
The 'Allow role assignments' tab is for setting which roles each role can assign other users to.
Enabling teachers to assign other teachers
By default, teachers can only assign other users the roles of non-editing teachers, students and guests. If you want teachers to be able to assign other teachers in their course, you can allow the role assignment:
- Click on Settings > Site administration > Users > Permissions > Define roles.
- Click the Allow role assignments tab.
- Click the checkbox where the teacher row and column intersect.
- Click the "Save changes" button.
Allow role overrides
The 'Allow role overrides' tab is for setting which roles can be overridden by each role. Note that the settings only apply to users who have the capabilities moodle/role:override or moodle/role:safeoverride allowed.
Allow role switches
The 'Allow role switches' tab is for setting which roles a user may switch to, based on which roles they already have. In addition to an entry in this table, a user must also have the moodle/role:switchroles capability to be able to switch.
Reset Role to defaults
Note: This also resets all overrides for that role.