<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/21/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jisner</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/21/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jisner"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/Special:Contributions/Jisner"/>
	<updated>2026-09-13T08:32:40Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40277</id>
		<title>Roles FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40277"/>
		<updated>2008-07-23T03:57:30Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* Do roles have an inheritance relationsip? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
==What is the definition of a...==&lt;br /&gt;
&lt;br /&gt;
;Capability&lt;br /&gt;
:A configurable aspect of behavior.  As of version 1.9 Moodle has over 200 capabilities.   Each capability has a computer friendly name like [[Capabilities/mod/forum:rate|mod/forum:rate]] and a human-friendly name like &amp;quot;Rate posts.&amp;quot;&lt;br /&gt;
;Permission&lt;br /&gt;
:A capability and its value considered as a pair.  There are four possible values: &#039;&#039;Not set&#039;&#039; (known as &#039;&#039;Inherit&#039;&#039; in 1.7), &#039;&#039;Allow&#039;&#039;, &#039;&#039;Prevent&#039;&#039;, and &#039;&#039;Prohibit&#039;&#039;&lt;br /&gt;
;Role&lt;br /&gt;
:A named set of permissions, for example Teacher, Student and Forum moderator&lt;br /&gt;
;Context&lt;br /&gt;
:A functional area of Moodle, such as a course, module or block&lt;br /&gt;
&lt;br /&gt;
==Why isn&#039;t my role change taking effect?==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.7.x and 1.8.x, role assignments and overrides do not take effect immediately.  They are delayed until the next time the user logs in.  Starting with Moodle 1.9, manual role assignments and overrides take effect immediately. However automatic role assignments that result from changes to certain user policies (for example, Default front page role) may be delayed until the next login.&lt;br /&gt;
&lt;br /&gt;
If you are testing a new role, [[Manage_roles#Testing_a_new_role | here are some suggestions]].&lt;br /&gt;
&lt;br /&gt;
Also, please check the context in which the role is assigned. Certain capabilities e.g. [[Capabilities/moodle/user:update|moodle/user:update]] may only be applied in the System context, so giving such permissions in the course context will have no effect.&lt;br /&gt;
&lt;br /&gt;
==Why are all my teacher accounts automatically added as &amp;quot;Teachers&amp;quot; in all my courses?==&lt;br /&gt;
&lt;br /&gt;
If a user is assigned a role in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles) or in a Course category context, then the user will have this role in ALL courses within the context. For example, a user who is assigned the Teacher role in the System context will appear as a Teacher in all courses on the site, including the Front page course.&lt;br /&gt;
&lt;br /&gt;
Except in very special cases, teachers and students should be assigned their respective roles in a Course context.  When these roles are assigned in a System context, it is almost always an error on the part of the administrator.&lt;br /&gt;
&lt;br /&gt;
If you have accidentally assigned a System role, go to &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039; unassign users using the right-facing arrow button.  Then re-assign the roles in the appropriate Course context.&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
*Users are assigned the role of student in the site/system context rather than the course context (see FAQ above)&lt;br /&gt;
Or&lt;br /&gt;
*The default role for all users in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to Student rather than Authenticated user (Moodle 1.8 onwards).&lt;br /&gt;
&lt;br /&gt;
==Why are there differences in the users listed as course participants and users assigned roles in a course?==&lt;br /&gt;
&lt;br /&gt;
Users assigned roles in a higher context, for example users assigned the role of teacher in a course category context, may appear as course participants. The discussion [http://moodle.org/mod/forum/discuss.php?d=59900 Discrepancies between Assign Roles lists and Participants list] contains a longer explanation. &lt;br /&gt;
&lt;br /&gt;
==How can I prevent administrators being listed as course participants?==&lt;br /&gt;
&lt;br /&gt;
Ensure that administrators are not assigned another role in addition to their admin role.&lt;br /&gt;
&lt;br /&gt;
==Why are hidden assignments still visible?==&lt;br /&gt;
&lt;br /&gt;
Hidden assignments are not hidden from admins or teachers i.e. users with the [[Capabilities/moodle/role:viewhiddenassigns|viewhiddenassigns capability]].&lt;br /&gt;
&lt;br /&gt;
==What is the difference between Prevent and Not set?==&lt;br /&gt;
&lt;br /&gt;
If a role has capability &#039;&#039;X = Not set&#039;&#039;, then the role is saying &amp;quot;I don&#039;t care about X.&amp;quot;  If a role has &#039;&#039;X = Prevent,&#039;&#039; then the role is saying &amp;quot;I don&#039;t want you be able to do X.&amp;quot;  Now you typically have multiple roles in a given context, and those roles may have different opinions about &#039;&#039;X&#039;&#039;. If ALL of your roles have &#039;&#039;X = Not set&#039;&#039; then you will be effectively prevented from doing &#039;&#039;X&#039;&#039; because you need positive permission to do something.  It&#039;s just like an election.  If you are a candidate but no one votes, you don&#039;t win the election.  If all of your roles except for one has &#039;&#039;X = Not set&#039;&#039; and the remaining role has &#039;&#039;X = Allow&#039;&#039;, then you will be allowed to do X.  Again, it&#039;s like an election where only one person votes, and they vote for you!  For more complicated cases (e.g., roles assigned and overridden in different contexts) you need to understand [[How permissions are calculated]], but the principle is the same: By not voting, a role can allow other roles to determine the outcome of the election.  Roles with lots of permissions Not set tend to mix well with other roles. &lt;br /&gt;
&lt;br /&gt;
==What is my role here?==&lt;br /&gt;
&lt;br /&gt;
This is a frequently asked question, but an improper one.  The correct question is &amp;quot;What are my &#039;&#039;permissions&#039;&#039; here?&amp;quot;  In any given context, you often have two or more roles.  In addition, one or more role overrides may be in effect.  Your permissions in a given context are a result of &amp;quot;adding&amp;quot; the individual permissions from these roles and overrides according to certain rules.  As Tim Hunt writes in [http://moodle.org/mod/forum/discuss.php?d=90140 this discussion], the rules &amp;quot;normally do what you expect.&amp;quot;  However when permissions conflict, the results can be surprising, and it pays to understand [[How permissions are calculated]].&lt;br /&gt;
&lt;br /&gt;
==How do I debug a roles-related problem?==&lt;br /&gt;
&lt;br /&gt;
If you&#039;re having a problem that you suspect is related to roles, consider using [[The rolesdebug.php roles debugging script | the rolesdebug.php roles debugging script]].  You can download it from the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=1204 Modules and plugins database].  The script gives you a spatial view of your role assignments and overrides in a given context, and analyzes your permissions there.  To interpret the output requires a basic understanding of roles and capabilities.  If you are a complete roles novice, run the script and post the output to the [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities Forum].&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from changing their own password?==&lt;br /&gt;
&lt;br /&gt;
To prevent a user from changing their own password, you must make sure they do not have moodle/user:changeownpassword (&amp;quot;Change own password&amp;quot;) = Allow in the System context. The Authenticated user role (which is assigned to users in the System context) has moodle/user:changeownpassword = Allow by default, so you have two choices: &lt;br /&gt;
# edit Authenticated user, setting moodle/user:changeownpassword = Not set &lt;br /&gt;
# create a new role CannotChangeOwnPassword with moodle/user:changeownpassword = Prevent and all other permissions Not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles). &lt;br /&gt;
&lt;br /&gt;
Choice (1) will prevent &#039;&#039;all&#039;&#039; users from changing their passwords (except for the administrator, who can do anything).  To selectively allow selected users (say teachers) to change their passwords, you could create a new role CanChangeOwnPassword with moodle/user:changeownpassword = Allow and all other permissions not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles).&lt;br /&gt;
&lt;br /&gt;
Choice (2) allows you to be selective, but if you have a lot of users that you want to prevent (say, all students), you will have to make a lot of role assignments in the System context.  There is currently no convenient way to do this, so you might consider choice (1).&lt;br /&gt;
&lt;br /&gt;
Note that you MUST deal with this permission in the System context.&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from editing their own profile?==&lt;br /&gt;
&lt;br /&gt;
See [[Roles_FAQ#How can I prevent a user from changing their own password? | How can I prevent a user from changing their own password?]]  The answer to this question is the same if you substitute &#039;&#039;edit their own profile&#039;&#039; for &#039;&#039;change their own password&#039;&#039; and &#039;&#039;moodle/user:editownprofile&#039;&#039; for &#039;&#039;moodle/user:changeownpassword.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Do roles have an inheritance relationship?==&lt;br /&gt;
&lt;br /&gt;
No. Roles are completely independent.&lt;br /&gt;
&lt;br /&gt;
* When you create a new role by copying an existing role, it is just like copying a file: the original and the copy are identical at the outset, but the copy has no ongoing relationship with the original.  Changes to the original do not affect the copy and &#039;&#039;vice versa&#039;&#039;.&lt;br /&gt;
* When you create a new role and select a value such as LEGACY:Student from the Legacy role type dropdown, you are not &amp;quot;inheriting&amp;quot; from the Student role.  You are simply indicating that you want your role to have the same defaults as Student.&lt;br /&gt;
* Course creator does not &amp;quot;inherit&amp;quot; from Teacher (a common misconception).  As with all roles, the two roles are completely independent.  Course creator is actually a very simple role that can basically only create courses and not much else.  However a user who creates a course is automatically assigned the role of Teacher in the newly-created course.  This is how a course creator gets her teaching abilities within a course.&lt;br /&gt;
&lt;br /&gt;
==Are there any differences in Roles in Moodle 1.7 and 1.8?==&lt;br /&gt;
&lt;br /&gt;
In addition to many Roles fixes and refinements (see the list of [http://tracker.moodle.org/secure/IssueNavigator.jspa?mode=hide&amp;amp;requestId=10221 Roles improvements] in the Tracker), in Moodle 1.8 the &#039;&#039;system&#039;&#039; context is separated from the &#039;&#039;front page&#039;&#039; context. Roles may be assigned in the front page context via &#039;&#039;Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Duplicate role&amp;quot; button has been added in Moodle 1.8, which makes creating new roles based on predefined roles much quicker.&lt;br /&gt;
&lt;br /&gt;
==How do I change the name for &amp;quot;teacher&amp;quot; in the course description?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
* Edit the role of Teacher via &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; and rename it. The new name will apply site-wide.&lt;br /&gt;
Or&lt;br /&gt;
* Create a duplicate teacher role with an alternative name and assign users the duplicate teacher role as appropriate in the course context. In &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Course manager&#039;&#039; select the alternative name for teacher that you wish to be displayed in the course description.&lt;br /&gt;
Or&lt;br /&gt;
* One more way to do it in 1.8 is to create new &amp;quot;dummy&amp;quot; roles (no capabilities) with those names and assign them to teachers along with the real roles. In the course manager settings you can choose which roles display on the front page under each course. (The feature request [http://tracker.moodle.org/browse/MDL-9182 Ability to assign or display custom title for role of person in course] contains this further method.)&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}From Moodle 1.9 onwards, names for different roles in a course may be changed in the [[Course settings|course settings]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to set role overrides?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Edit the teacher role and change the capability [[Capabilities/moodle/role:override|moodle/role:override]] to allow.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
#Click the tab &amp;quot;Allow role overrides&amp;quot; (in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;).&lt;br /&gt;
#Check the appropriate box to allow a teacher to override the student role.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to assign other teachers in a course?==&lt;br /&gt;
&lt;br /&gt;
This is disabled by default but it can be switched on by modifying the teacher&#039;s role. In &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; select the &amp;quot;Allow role assignments&amp;quot; tab and tick the checkbox where Teacher and Teacher intersect.&lt;br /&gt;
&lt;br /&gt;
==Why doesn&#039;t &amp;quot;Switch role to..&amp;quot; within a course seem to work properly for a course creator?==&lt;br /&gt;
&lt;br /&gt;
This feature is intended for teachers so that they can see how their course appears for students. It doesn&#039;t work reliably outside the course.&lt;br /&gt;
&lt;br /&gt;
Further information about this feature can be found in [[Switch roles]] and the paragraph on testing a new role in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
==Are there any example roles?==&lt;br /&gt;
&lt;br /&gt;
Yes, as follows:&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role|Forum moderator]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Calendar editor role|Calendar editor]] - for providing a user with permission to add site events to the calendar&lt;br /&gt;
*[[Blogger role|Blogger]] - for limiting blogging to specific users only&lt;br /&gt;
*[[Quiz user with unlimited time role|Quiz user with unlimited time]] - for allowing a user unlimited time to attempt a quiz which has a time limit set&lt;br /&gt;
*[[Question creator role|Question creator]] - for enabling students to create questions for use in quizzes&lt;br /&gt;
&lt;br /&gt;
==Logged-in users can&#039;t read the site news. What can I do?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override permissions&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Scroll down to &#039;&#039;&#039;Forum&#039;&#039;&#039;&lt;br /&gt;
#Change the capability [[Capabilities/mod/forum:viewdiscussion|mod/forum:viewdiscussion]] to &#039;&#039;allow&#039;&#039;&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I enable logged-in users to participate in front page activities?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Change capabilities to &#039;&#039;allow&#039;&#039; for all required activities e.g. record a choice, reply to posts&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Note that for this to work, you need to make the default role for all users &amp;quot;authenticated user&amp;quot;. This is the default for new versions of Moodle. In older versions, the default setting is guest, so if you have recently upgraded, you may have to change this setting. You can change the setting via &#039;&#039;Site Administration &amp;gt; Permissions &amp;gt; User Policies&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Click on Student&lt;br /&gt;
#Select all users in the potential users list, and use the left-facing arrow button to add them to the existing users list&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I copy a custom role from one Moodle site to another==&lt;br /&gt;
&lt;br /&gt;
There is no import and export facility for roles, but it can be achieved nearly as easily using backup and restore.&lt;br /&gt;
&lt;br /&gt;
# Create an empty course with all the default settings&lt;br /&gt;
# Assign anybody to your custom role (or roles) within the course&lt;br /&gt;
# Backup the course (all defaults are fine)&lt;br /&gt;
# Download the backup file&lt;br /&gt;
# Upload the backup file to the site files of the target Moodle&lt;br /&gt;
# Restore the course (all defaults are fine)&lt;br /&gt;
# Delete the course.&lt;br /&gt;
&lt;br /&gt;
You will find that the custom roles have been recreated in the target site.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities forum]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[de:Rollen FAQ]]&lt;br /&gt;
[[es:FAQ_roles]]&lt;br /&gt;
[[fr:FAQ des rôles]]&lt;br /&gt;
[[ja:ロールFAQ]]&lt;br /&gt;
[[ru:FAQ по ролям]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40255</id>
		<title>Roles FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40255"/>
		<updated>2008-07-22T16:48:54Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* Do roles have an inheritance relationsip? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
==What is the definition of a...==&lt;br /&gt;
&lt;br /&gt;
;Capability&lt;br /&gt;
:A configurable aspect of behavior.  As of version 1.9 Moodle has over 200 capabilities.   Each capability has a computer friendly name like [[Capabilities/mod/forum:rate|mod/forum:rate]] and a human-friendly name like &amp;quot;Rate posts.&amp;quot;&lt;br /&gt;
;Permission&lt;br /&gt;
:A capability and its value considered as a pair.  There are four possible values: &#039;&#039;Not set&#039;&#039; (known as &#039;&#039;Inherit&#039;&#039; in 1.7), &#039;&#039;Allow&#039;&#039;, &#039;&#039;Prevent&#039;&#039;, and &#039;&#039;Prohibit&#039;&#039;&lt;br /&gt;
;Role&lt;br /&gt;
:A named set of permissions, for example Teacher, Student and Forum moderator&lt;br /&gt;
;Context&lt;br /&gt;
:A functional area of Moodle, such as a course, module or block&lt;br /&gt;
&lt;br /&gt;
==Why isn&#039;t my role change taking effect?==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.7.x and 1.8.x, role assignments and overrides do not take effect immediately.  They are delayed until the next time the user logs in.  Starting with Moodle 1.9, manual role assignments and overrides take effect immediately. However automatic role assignments that result from changes to certain user policies (for example, Default front page role) may be delayed until the next login.&lt;br /&gt;
&lt;br /&gt;
If you are testing a new role, [[Manage_roles#Testing_a_new_role | here are some suggestions]].&lt;br /&gt;
&lt;br /&gt;
Also, please check the context in which the role is assigned. Certain capabilities e.g. [[Capabilities/moodle/user:update|moodle/user:update]] may only be applied in the System context, so giving such permissions in the course context will have no effect.&lt;br /&gt;
&lt;br /&gt;
==Why are all my teacher accounts automatically added as &amp;quot;Teachers&amp;quot; in all my courses?==&lt;br /&gt;
&lt;br /&gt;
If a user is assigned a role in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles) or in a Course category context, then the user will have this role in ALL courses within the context. For example, a user who is assigned the Teacher role in the System context will appear as a Teacher in all courses on the site, including the Front page course.&lt;br /&gt;
&lt;br /&gt;
Except in very special cases, teachers and students should be assigned their respective roles in a Course context.  When these roles are assigned in a System context, it is almost always an error on the part of the administrator.&lt;br /&gt;
&lt;br /&gt;
If you have accidentally assigned a System role, go to &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039; unassign users using the right-facing arrow button.  Then re-assign the roles in the appropriate Course context.&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
*Users are assigned the role of student in the site/system context rather than the course context (see FAQ above)&lt;br /&gt;
Or&lt;br /&gt;
*The default role for all users in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to Student rather than Authenticated user (Moodle 1.8 onwards).&lt;br /&gt;
&lt;br /&gt;
==Why are there differences in the users listed as course participants and users assigned roles in a course?==&lt;br /&gt;
&lt;br /&gt;
Users assigned roles in a higher context, for example users assigned the role of teacher in a course category context, may appear as course participants. The discussion [http://moodle.org/mod/forum/discuss.php?d=59900 Discrepancies between Assign Roles lists and Participants list] contains a longer explanation. &lt;br /&gt;
&lt;br /&gt;
==How can I prevent administrators being listed as course participants?==&lt;br /&gt;
&lt;br /&gt;
Ensure that administrators are not assigned another role in addition to their admin role.&lt;br /&gt;
&lt;br /&gt;
==Why are hidden assignments still visible?==&lt;br /&gt;
&lt;br /&gt;
Hidden assignments are not hidden from admins or teachers i.e. users with the [[Capabilities/moodle/role:viewhiddenassigns|viewhiddenassigns capability]].&lt;br /&gt;
&lt;br /&gt;
==What is the difference between Prevent and Not set?==&lt;br /&gt;
&lt;br /&gt;
If a role has capability &#039;&#039;X = Not set&#039;&#039;, then the role is saying &amp;quot;I don&#039;t care about X.&amp;quot;  If a role has &#039;&#039;X = Prevent,&#039;&#039; then the role is saying &amp;quot;I don&#039;t want you be able to do X.&amp;quot;  Now you typically have multiple roles in a given context, and those roles may have different opinions about &#039;&#039;X&#039;&#039;. If ALL of your roles have &#039;&#039;X = Not set&#039;&#039; then you will be effectively prevented from doing &#039;&#039;X&#039;&#039; because you need positive permission to do something.  It&#039;s just like an election.  If you are a candidate but no one votes, you don&#039;t win the election.  If all of your roles except for one has &#039;&#039;X = Not set&#039;&#039; and the remaining role has &#039;&#039;X = Allow&#039;&#039;, then you will be allowed to do X.  Again, it&#039;s like an election where only one person votes, and they vote for you!  For more complicated cases (e.g., roles assigned and overridden in different contexts) you need to understand [[How permissions are calculated]], but the principle is the same: By not voting, a role can allow other roles to determine the outcome of the election.  Roles with lots of permissions Not set tend to mix well with other roles. &lt;br /&gt;
&lt;br /&gt;
==What is my role here?==&lt;br /&gt;
&lt;br /&gt;
This is a frequently asked question, but an improper one.  The correct question is &amp;quot;What are my &#039;&#039;permissions&#039;&#039; here?&amp;quot;  In any given context, you often have two or more roles.  In addition, one or more role overrides may be in effect.  Your permissions in a given context are a result of &amp;quot;adding&amp;quot; the individual permissions from these roles and overrides according to certain rules.  As Tim Hunt writes in [http://moodle.org/mod/forum/discuss.php?d=90140 this discussion], the rules &amp;quot;normally do what you expect.&amp;quot;  However when permissions conflict, the results can be surprising, and it pays to understand [[How permissions are calculated]].&lt;br /&gt;
&lt;br /&gt;
==How do I debug a roles-related problem?==&lt;br /&gt;
&lt;br /&gt;
If you&#039;re having a problem that you suspect is related to roles, consider using [[The rolesdebug.php roles debugging script | the rolesdebug.php roles debugging script]].  You can download it from the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=1204 Modules and plugins database].  The script gives you a spatial view of your role assignments and overrides in a given context, and analyzes your permissions there.  To interpret the output requires a basic understanding of roles and capabilities.  If you are a complete roles novice, run the script and post the output to the [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities Forum].&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from changing their own password?==&lt;br /&gt;
&lt;br /&gt;
To prevent a user from changing their own password, you must make sure they do not have moodle/user:changeownpassword (&amp;quot;Change own password&amp;quot;) = Allow in the System context. The Authenticated user role (which is assigned to users in the System context) has moodle/user:changeownpassword = Allow by default, so you have two choices: &lt;br /&gt;
# edit Authenticated user, setting moodle/user:changeownpassword = Not set &lt;br /&gt;
# create a new role CannotChangeOwnPassword with moodle/user:changeownpassword = Prevent and all other permissions Not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles). &lt;br /&gt;
&lt;br /&gt;
Choice (1) will prevent &#039;&#039;all&#039;&#039; users from changing their passwords (except for the administrator, who can do anything).  To selectively allow selected users (say teachers) to change their passwords, you could create a new role CanChangeOwnPassword with moodle/user:changeownpassword = Allow and all other permissions not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles).&lt;br /&gt;
&lt;br /&gt;
Choice (2) allows you to be selective, but if you have a lot of users that you want to prevent (say, all students), you will have to make a lot of role assignments in the System context.  There is currently no convenient way to do this, so you might consider choice (1).&lt;br /&gt;
&lt;br /&gt;
Note that you MUST deal with this permission in the System context.&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from editing their own profile?==&lt;br /&gt;
&lt;br /&gt;
See [[Roles_FAQ#How can I prevent a user from changing their own password? | How can I prevent a user from changing their own password?]]  The answer to this question is the same if you substitute &#039;&#039;edit their own profile&#039;&#039; for &#039;&#039;change their own password&#039;&#039; and &#039;&#039;moodle/user:editownprofile&#039;&#039; for &#039;&#039;moodle/user:changeownpassword.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Do roles have an inheritance relationsip?==&lt;br /&gt;
&lt;br /&gt;
No. Roles are completely independent.&lt;br /&gt;
&lt;br /&gt;
* When you create a new role by copying an existing role, it is just like copying a file: the original and the copy are identical at the outset, but the copy has no ongoing relationship with the original.  Changes to the original do not affect the copy and &#039;&#039;vice versa&#039;&#039;.&lt;br /&gt;
* When you create a new role and select a value such as LEGACY:Student from the Legacy role type dropdown, you are not &amp;quot;inheriting&amp;quot; from the Student role.  You are simply indicating that you want your role to have the same defaults as Student.&lt;br /&gt;
* Course creator does not &amp;quot;inherit&amp;quot; from Teacher (a common misconception).  As with all roles, the two roles are completely independent.  Course creator is actually a very simple role that can basically only create courses and not much else.  However a user who creates a course is automatically assigned the role of Teacher in the newly-created course.  This is how a course creator gets her teaching abilities within a course.&lt;br /&gt;
&lt;br /&gt;
==Are there any differences in Roles in Moodle 1.7 and 1.8?==&lt;br /&gt;
&lt;br /&gt;
In addition to many Roles fixes and refinements (see the list of [http://tracker.moodle.org/secure/IssueNavigator.jspa?mode=hide&amp;amp;requestId=10221 Roles improvements] in the Tracker), in Moodle 1.8 the &#039;&#039;system&#039;&#039; context is separated from the &#039;&#039;front page&#039;&#039; context. Roles may be assigned in the front page context via &#039;&#039;Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Duplicate role&amp;quot; button has been added in Moodle 1.8, which makes creating new roles based on predefined roles much quicker.&lt;br /&gt;
&lt;br /&gt;
==How do I change the name for &amp;quot;teacher&amp;quot; in the course description?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
* Edit the role of Teacher via &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; and rename it. The new name will apply site-wide.&lt;br /&gt;
Or&lt;br /&gt;
* Create a duplicate teacher role with an alternative name and assign users the duplicate teacher role as appropriate in the course context. In &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Course manager&#039;&#039; select the alternative name for teacher that you wish to be displayed in the course description.&lt;br /&gt;
Or&lt;br /&gt;
* One more way to do it in 1.8 is to create new &amp;quot;dummy&amp;quot; roles (no capabilities) with those names and assign them to teachers along with the real roles. In the course manager settings you can choose which roles display on the front page under each course. (The feature request [http://tracker.moodle.org/browse/MDL-9182 Ability to assign or display custom title for role of person in course] contains this further method.)&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}From Moodle 1.9 onwards, names for different roles in a course may be changed in the [[Course settings|course settings]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to set role overrides?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Edit the teacher role and change the capability [[Capabilities/moodle/role:override|moodle/role:override]] to allow.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
#Click the tab &amp;quot;Allow role overrides&amp;quot; (in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;).&lt;br /&gt;
#Check the appropriate box to allow a teacher to override the student role.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to assign other teachers in a course?==&lt;br /&gt;
&lt;br /&gt;
This is disabled by default but it can be switched on by modifying the teacher&#039;s role. In &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; select the &amp;quot;Allow role assignments&amp;quot; tab and tick the checkbox where Teacher and Teacher intersect.&lt;br /&gt;
&lt;br /&gt;
==Why doesn&#039;t &amp;quot;Switch role to..&amp;quot; within a course seem to work properly for a course creator?==&lt;br /&gt;
&lt;br /&gt;
This feature is intended for teachers so that they can see how their course appears for students. It doesn&#039;t work reliably outside the course.&lt;br /&gt;
&lt;br /&gt;
Further information about this feature can be found in [[Switch roles]] and the paragraph on testing a new role in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
==Are there any example roles?==&lt;br /&gt;
&lt;br /&gt;
Yes, as follows:&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role|Forum moderator]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Calendar editor role|Calendar editor]] - for providing a user with permission to add site events to the calendar&lt;br /&gt;
*[[Blogger role|Blogger]] - for limiting blogging to specific users only&lt;br /&gt;
*[[Quiz user with unlimited time role|Quiz user with unlimited time]] - for allowing a user unlimited time to attempt a quiz which has a time limit set&lt;br /&gt;
*[[Question creator role|Question creator]] - for enabling students to create questions for use in quizzes&lt;br /&gt;
&lt;br /&gt;
==Logged-in users can&#039;t read the site news. What can I do?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override permissions&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Scroll down to &#039;&#039;&#039;Forum&#039;&#039;&#039;&lt;br /&gt;
#Change the capability [[Capabilities/mod/forum:viewdiscussion|mod/forum:viewdiscussion]] to &#039;&#039;allow&#039;&#039;&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I enable logged-in users to participate in front page activities?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Change capabilities to &#039;&#039;allow&#039;&#039; for all required activities e.g. record a choice, reply to posts&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Note that for this to work, you need to make the default role for all users &amp;quot;authenticated user&amp;quot;. This is the default for new versions of Moodle. In older versions, the default setting is guest, so if you have recently upgraded, you may have to change this setting. You can change the setting via &#039;&#039;Site Administration &amp;gt; Permissions &amp;gt; User Policies&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Click on Student&lt;br /&gt;
#Select all users in the potential users list, and use the left-facing arrow button to add them to the existing users list&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I copy a custom role from one Moodle site to another==&lt;br /&gt;
&lt;br /&gt;
There is no import and export facility for roles, but it can be achieved nearly as easily using backup and restore.&lt;br /&gt;
&lt;br /&gt;
# Create an empty course with all the default settings&lt;br /&gt;
# Assign anybody to your custom role (or roles) within the course&lt;br /&gt;
# Backup the course (all defaults are fine)&lt;br /&gt;
# Download the backup file&lt;br /&gt;
# Upload the backup file to the site files of the target Moodle&lt;br /&gt;
# Restore the course (all defaults are fine)&lt;br /&gt;
# Delete the course.&lt;br /&gt;
&lt;br /&gt;
You will find that the custom roles have been recreated in the target site.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities forum]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[de:Rollen FAQ]]&lt;br /&gt;
[[es:FAQ_roles]]&lt;br /&gt;
[[fr:FAQ des rôles]]&lt;br /&gt;
[[ja:ロールFAQ]]&lt;br /&gt;
[[ru:FAQ по ролям]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40247</id>
		<title>Roles FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40247"/>
		<updated>2008-07-22T16:43:41Z</updated>

		<summary type="html">&lt;p&gt;Jisner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
==What is the definition of a...==&lt;br /&gt;
&lt;br /&gt;
;Capability&lt;br /&gt;
:A configurable aspect of behavior.  As of version 1.9 Moodle has over 200 capabilities.   Each capability has a computer friendly name like [[Capabilities/mod/forum:rate|mod/forum:rate]] and a human-friendly name like &amp;quot;Rate posts.&amp;quot;&lt;br /&gt;
;Permission&lt;br /&gt;
:A capability and its value considered as a pair.  There are four possible values: &#039;&#039;Not set&#039;&#039; (known as &#039;&#039;Inherit&#039;&#039; in 1.7), &#039;&#039;Allow&#039;&#039;, &#039;&#039;Prevent&#039;&#039;, and &#039;&#039;Prohibit&#039;&#039;&lt;br /&gt;
;Role&lt;br /&gt;
:A named set of permissions, for example Teacher, Student and Forum moderator&lt;br /&gt;
;Context&lt;br /&gt;
:A functional area of Moodle, such as a course, module or block&lt;br /&gt;
&lt;br /&gt;
==Why isn&#039;t my role change taking effect?==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.7.x and 1.8.x, role assignments and overrides do not take effect immediately.  They are delayed until the next time the user logs in.  Starting with Moodle 1.9, manual role assignments and overrides take effect immediately. However automatic role assignments that result from changes to certain user policies (for example, Default front page role) may be delayed until the next login.&lt;br /&gt;
&lt;br /&gt;
If you are testing a new role, [[Manage_roles#Testing_a_new_role | here are some suggestions]].&lt;br /&gt;
&lt;br /&gt;
Also, please check the context in which the role is assigned. Certain capabilities e.g. [[Capabilities/moodle/user:update|moodle/user:update]] may only be applied in the System context, so giving such permissions in the course context will have no effect.&lt;br /&gt;
&lt;br /&gt;
==Why are all my teacher accounts automatically added as &amp;quot;Teachers&amp;quot; in all my courses?==&lt;br /&gt;
&lt;br /&gt;
If a user is assigned a role in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles) or in a Course category context, then the user will have this role in ALL courses within the context. For example, a user who is assigned the Teacher role in the System context will appear as a Teacher in all courses on the site, including the Front page course.&lt;br /&gt;
&lt;br /&gt;
Except in very special cases, teachers and students should be assigned their respective roles in a Course context.  When these roles are assigned in a System context, it is almost always an error on the part of the administrator.&lt;br /&gt;
&lt;br /&gt;
If you have accidentally assigned a System role, go to &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039; unassign users using the right-facing arrow button.  Then re-assign the roles in the appropriate Course context.&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
*Users are assigned the role of student in the site/system context rather than the course context (see FAQ above)&lt;br /&gt;
Or&lt;br /&gt;
*The default role for all users in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to Student rather than Authenticated user (Moodle 1.8 onwards).&lt;br /&gt;
&lt;br /&gt;
==Why are there differences in the users listed as course participants and users assigned roles in a course?==&lt;br /&gt;
&lt;br /&gt;
Users assigned roles in a higher context, for example users assigned the role of teacher in a course category context, may appear as course participants. The discussion [http://moodle.org/mod/forum/discuss.php?d=59900 Discrepancies between Assign Roles lists and Participants list] contains a longer explanation. &lt;br /&gt;
&lt;br /&gt;
==How can I prevent administrators being listed as course participants?==&lt;br /&gt;
&lt;br /&gt;
Ensure that administrators are not assigned another role in addition to their admin role.&lt;br /&gt;
&lt;br /&gt;
==Why are hidden assignments still visible?==&lt;br /&gt;
&lt;br /&gt;
Hidden assignments are not hidden from admins or teachers i.e. users with the [[Capabilities/moodle/role:viewhiddenassigns|viewhiddenassigns capability]].&lt;br /&gt;
&lt;br /&gt;
==What is the difference between Prevent and Not set?==&lt;br /&gt;
&lt;br /&gt;
If a role has capability &#039;&#039;X = Not set&#039;&#039;, then the role is saying &amp;quot;I don&#039;t care about X.&amp;quot;  If a role has &#039;&#039;X = Prevent,&#039;&#039; then the role is saying &amp;quot;I don&#039;t want you be able to do X.&amp;quot;  Now you typically have multiple roles in a given context, and those roles may have different opinions about &#039;&#039;X&#039;&#039;. If ALL of your roles have &#039;&#039;X = Not set&#039;&#039; then you will be effectively prevented from doing &#039;&#039;X&#039;&#039; because you need positive permission to do something.  It&#039;s just like an election.  If you are a candidate but no one votes, you don&#039;t win the election.  If all of your roles except for one has &#039;&#039;X = Not set&#039;&#039; and the remaining role has &#039;&#039;X = Allow&#039;&#039;, then you will be allowed to do X.  Again, it&#039;s like an election where only one person votes, and they vote for you!  For more complicated cases (e.g., roles assigned and overridden in different contexts) you need to understand [[How permissions are calculated]], but the principle is the same: By not voting, a role can allow other roles to determine the outcome of the election.  Roles with lots of permissions Not set tend to mix well with other roles. &lt;br /&gt;
&lt;br /&gt;
==What is my role here?==&lt;br /&gt;
&lt;br /&gt;
This is a frequently asked question, but an improper one.  The correct question is &amp;quot;What are my &#039;&#039;permissions&#039;&#039; here?&amp;quot;  In any given context, you often have two or more roles.  In addition, one or more role overrides may be in effect.  Your permissions in a given context are a result of &amp;quot;adding&amp;quot; the individual permissions from these roles and overrides according to certain rules.  As Tim Hunt writes in [http://moodle.org/mod/forum/discuss.php?d=90140 this discussion], the rules &amp;quot;normally do what you expect.&amp;quot;  However when permissions conflict, the results can be surprising, and it pays to understand [[How permissions are calculated]].&lt;br /&gt;
&lt;br /&gt;
==How do I debug a roles-related problem?==&lt;br /&gt;
&lt;br /&gt;
If you&#039;re having a problem that you suspect is related to roles, consider using [[The rolesdebug.php roles debugging script | the rolesdebug.php roles debugging script]].  You can download it from the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=1204 Modules and plugins database].  The script gives you a spatial view of your role assignments and overrides in a given context, and analyzes your permissions there.  To interpret the output requires a basic understanding of roles and capabilities.  If you are a complete roles novice, run the script and post the output to the [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities Forum].&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from changing their own password?==&lt;br /&gt;
&lt;br /&gt;
To prevent a user from changing their own password, you must make sure they do not have moodle/user:changeownpassword (&amp;quot;Change own password&amp;quot;) = Allow in the System context. The Authenticated user role (which is assigned to users in the System context) has moodle/user:changeownpassword = Allow by default, so you have two choices: &lt;br /&gt;
# edit Authenticated user, setting moodle/user:changeownpassword = Not set &lt;br /&gt;
# create a new role CannotChangeOwnPassword with moodle/user:changeownpassword = Prevent and all other permissions Not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles). &lt;br /&gt;
&lt;br /&gt;
Choice (1) will prevent &#039;&#039;all&#039;&#039; users from changing their passwords (except for the administrator, who can do anything).  To selectively allow selected users (say teachers) to change their passwords, you could create a new role CanChangeOwnPassword with moodle/user:changeownpassword = Allow and all other permissions not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles).&lt;br /&gt;
&lt;br /&gt;
Choice (2) allows you to be selective, but if you have a lot of users that you want to prevent (say, all students), you will have to make a lot of role assignments in the System context.  There is currently no convenient way to do this, so you might consider choice (1).&lt;br /&gt;
&lt;br /&gt;
Note that you MUST deal with this permission in the System context.&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from editing their own profile?==&lt;br /&gt;
&lt;br /&gt;
See [[Roles_FAQ#How can I prevent a user from changing their own password? | How can I prevent a user from changing their own password?]]  The answer to this question is the same if you substitute &#039;&#039;edit their own profile&#039;&#039; for &#039;&#039;change their own password&#039;&#039; and &#039;&#039;moodle/user:editownprofile&#039;&#039; for &#039;&#039;moodle/user:changeownpassword.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Do roles have an inheritance relationsip?==&lt;br /&gt;
&lt;br /&gt;
No. Roles are completely independent.&lt;br /&gt;
&lt;br /&gt;
* When you create a new role by copying an existing role, it is just like copying a file: the original and the copy are identical at the outset, but the copy has no ongoing relationship with the original.  Changes to the original do not affect the copy and &#039;&#039;vice versa&#039;&#039;.&lt;br /&gt;
* When you create a new role and select a value other such as LEGACY:Student from the Legacy role type dropdown, you are not &amp;quot;inheriting&amp;quot; from the Student role.  You are simply indicating that you want your role to have the same defaults as Student.&lt;br /&gt;
* Course creator does not &amp;quot;inherit&amp;quot; from Teacher (a common misconception).  As with all roles, the two roles are completely independent.  Course creator is actually a very simple role that can basically only create courses and not much else.  However a user who creates a course is automatically assigned the role of Teacher in the newly-created course.  This is how a course creator gets her teaching abilities within a course.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
==Are there any differences in Roles in Moodle 1.7 and 1.8?==&lt;br /&gt;
&lt;br /&gt;
In addition to many Roles fixes and refinements (see the list of [http://tracker.moodle.org/secure/IssueNavigator.jspa?mode=hide&amp;amp;requestId=10221 Roles improvements] in the Tracker), in Moodle 1.8 the &#039;&#039;system&#039;&#039; context is separated from the &#039;&#039;front page&#039;&#039; context. Roles may be assigned in the front page context via &#039;&#039;Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Duplicate role&amp;quot; button has been added in Moodle 1.8, which makes creating new roles based on predefined roles much quicker.&lt;br /&gt;
&lt;br /&gt;
==How do I change the name for &amp;quot;teacher&amp;quot; in the course description?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
* Edit the role of Teacher via &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; and rename it. The new name will apply site-wide.&lt;br /&gt;
Or&lt;br /&gt;
* Create a duplicate teacher role with an alternative name and assign users the duplicate teacher role as appropriate in the course context. In &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Course manager&#039;&#039; select the alternative name for teacher that you wish to be displayed in the course description.&lt;br /&gt;
Or&lt;br /&gt;
* One more way to do it in 1.8 is to create new &amp;quot;dummy&amp;quot; roles (no capabilities) with those names and assign them to teachers along with the real roles. In the course manager settings you can choose which roles display on the front page under each course. (The feature request [http://tracker.moodle.org/browse/MDL-9182 Ability to assign or display custom title for role of person in course] contains this further method.)&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}From Moodle 1.9 onwards, names for different roles in a course may be changed in the [[Course settings|course settings]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to set role overrides?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Edit the teacher role and change the capability [[Capabilities/moodle/role:override|moodle/role:override]] to allow.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
#Click the tab &amp;quot;Allow role overrides&amp;quot; (in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;).&lt;br /&gt;
#Check the appropriate box to allow a teacher to override the student role.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to assign other teachers in a course?==&lt;br /&gt;
&lt;br /&gt;
This is disabled by default but it can be switched on by modifying the teacher&#039;s role. In &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; select the &amp;quot;Allow role assignments&amp;quot; tab and tick the checkbox where Teacher and Teacher intersect.&lt;br /&gt;
&lt;br /&gt;
==Why doesn&#039;t &amp;quot;Switch role to..&amp;quot; within a course seem to work properly for a course creator?==&lt;br /&gt;
&lt;br /&gt;
This feature is intended for teachers so that they can see how their course appears for students. It doesn&#039;t work reliably outside the course.&lt;br /&gt;
&lt;br /&gt;
Further information about this feature can be found in [[Switch roles]] and the paragraph on testing a new role in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
==Are there any example roles?==&lt;br /&gt;
&lt;br /&gt;
Yes, as follows:&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role|Forum moderator]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Calendar editor role|Calendar editor]] - for providing a user with permission to add site events to the calendar&lt;br /&gt;
*[[Blogger role|Blogger]] - for limiting blogging to specific users only&lt;br /&gt;
*[[Quiz user with unlimited time role|Quiz user with unlimited time]] - for allowing a user unlimited time to attempt a quiz which has a time limit set&lt;br /&gt;
*[[Question creator role|Question creator]] - for enabling students to create questions for use in quizzes&lt;br /&gt;
&lt;br /&gt;
==Logged-in users can&#039;t read the site news. What can I do?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override permissions&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Scroll down to &#039;&#039;&#039;Forum&#039;&#039;&#039;&lt;br /&gt;
#Change the capability [[Capabilities/mod/forum:viewdiscussion|mod/forum:viewdiscussion]] to &#039;&#039;allow&#039;&#039;&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I enable logged-in users to participate in front page activities?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Change capabilities to &#039;&#039;allow&#039;&#039; for all required activities e.g. record a choice, reply to posts&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Note that for this to work, you need to make the default role for all users &amp;quot;authenticated user&amp;quot;. This is the default for new versions of Moodle. In older versions, the default setting is guest, so if you have recently upgraded, you may have to change this setting. You can change the setting via &#039;&#039;Site Administration &amp;gt; Permissions &amp;gt; User Policies&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Click on Student&lt;br /&gt;
#Select all users in the potential users list, and use the left-facing arrow button to add them to the existing users list&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I copy a custom role from one Moodle site to another==&lt;br /&gt;
&lt;br /&gt;
There is no import and export facility for roles, but it can be achieved nearly as easily using backup and restore.&lt;br /&gt;
&lt;br /&gt;
# Create an empty course with all the default settings&lt;br /&gt;
# Assign anybody to your custom role (or roles) within the course&lt;br /&gt;
# Backup the course (all defaults are fine)&lt;br /&gt;
# Download the backup file&lt;br /&gt;
# Upload the backup file to the site files of the target Moodle&lt;br /&gt;
# Restore the course (all defaults are fine)&lt;br /&gt;
# Delete the course.&lt;br /&gt;
&lt;br /&gt;
You will find that the custom roles have been recreated in the target site.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities forum]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[de:Rollen FAQ]]&lt;br /&gt;
[[es:FAQ_roles]]&lt;br /&gt;
[[fr:FAQ des rôles]]&lt;br /&gt;
[[ja:ロールFAQ]]&lt;br /&gt;
[[ru:FAQ по ролям]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40246</id>
		<title>Roles FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40246"/>
		<updated>2008-07-22T16:22:51Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* Why isn&amp;#039;t my role change taking effect? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
==What is the definition of a...==&lt;br /&gt;
&lt;br /&gt;
;Capability&lt;br /&gt;
:A configurable aspect of behavior.  As of version 1.9 Moodle has over 200 capabilities.   Each capability has a computer friendly name like [[Capabilities/mod/forum:rate|mod/forum:rate]] and a human-friendly name like &amp;quot;Rate posts.&amp;quot;&lt;br /&gt;
;Permission&lt;br /&gt;
:A capability and its value considered as a pair.  There are four possible values: &#039;&#039;Not set&#039;&#039; (known as &#039;&#039;Inherit&#039;&#039; in 1.7), &#039;&#039;Allow&#039;&#039;, &#039;&#039;Prevent&#039;&#039;, and &#039;&#039;Prohibit&#039;&#039;&lt;br /&gt;
;Role&lt;br /&gt;
:A named set of permissions, for example Teacher, Student and Forum moderator&lt;br /&gt;
;Context&lt;br /&gt;
:A functional area of Moodle, such as a course, module or block&lt;br /&gt;
&lt;br /&gt;
==Why isn&#039;t my role change taking effect?==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.7.x and 1.8.x, role assignments and overrides do not take effect immediately.  They are delayed until the next time the user logs in.  Starting with Moodle 1.9, manual role assignments and overrides take effect immediately. However automatic role assignments that result from changes to certain user policies (for example, Default front page role) may be delayed until the next login.&lt;br /&gt;
&lt;br /&gt;
If you are testing a new role, [[Manage_roles#Testing_a_new_role | here are some suggestions]].&lt;br /&gt;
&lt;br /&gt;
Also, please check the context in which the role is assigned. Certain capabilities e.g. [[Capabilities/moodle/user:update|moodle/user:update]] may only be applied in the System context, so giving such permissions in the course context will have no effect.&lt;br /&gt;
&lt;br /&gt;
==Why are all my teacher accounts automatically added as &amp;quot;Teachers&amp;quot; in all my courses?==&lt;br /&gt;
&lt;br /&gt;
If a user is assigned a role in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles) or in a Course category context, then the user will have this role in ALL courses within the context. For example, a user who is assigned the Teacher role in the System context will appear as a Teacher in all courses on the site, including the Front page course.&lt;br /&gt;
&lt;br /&gt;
Except in very special cases, teachers and students should be assigned their respective roles in a Course context.  When these roles are assigned in a System context, it is almost always an error on the part of the administrator.&lt;br /&gt;
&lt;br /&gt;
If you have accidentally assigned a System role, go to &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039; unassign users using the right-facing arrow button.  Then re-assign the roles in the appropriate Course context.&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
*Users are assigned the role of student in the site/system context rather than the course context (see FAQ above)&lt;br /&gt;
Or&lt;br /&gt;
*The default role for all users in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to Student rather than Authenticated user (Moodle 1.8 onwards).&lt;br /&gt;
&lt;br /&gt;
==Why are there differences in the users listed as course participants and users assigned roles in a course?==&lt;br /&gt;
&lt;br /&gt;
Users assigned roles in a higher context, for example users assigned the role of teacher in a course category context, may appear as course participants. The discussion [http://moodle.org/mod/forum/discuss.php?d=59900 Discrepancies between Assign Roles lists and Participants list] contains a longer explanation. &lt;br /&gt;
&lt;br /&gt;
==How can I prevent administrators being listed as course participants?==&lt;br /&gt;
&lt;br /&gt;
Ensure that administrators are not assigned another role in addition to their admin role.&lt;br /&gt;
&lt;br /&gt;
==Why are hidden assignments still visible?==&lt;br /&gt;
&lt;br /&gt;
Hidden assignments are not hidden from admins or teachers i.e. users with the [[Capabilities/moodle/role:viewhiddenassigns|viewhiddenassigns capability]].&lt;br /&gt;
&lt;br /&gt;
==What is the difference between Prevent and Not set?==&lt;br /&gt;
&lt;br /&gt;
If a role has capability &#039;&#039;X = Not set&#039;&#039;, then the role is saying &amp;quot;I don&#039;t care about X.&amp;quot;  If a role has &#039;&#039;X = Prevent,&#039;&#039; then the role is saying &amp;quot;I don&#039;t want you be able to do X.&amp;quot;  Now you typically have multiple roles in a given context, and those roles may have different opinions about &#039;&#039;X&#039;&#039;. If ALL of your roles have &#039;&#039;X = Not set&#039;&#039; then you will be effectively prevented from doing &#039;&#039;X&#039;&#039; because you need positive permission to do something.  It&#039;s just like an election.  If you are a candidate but no one votes, you don&#039;t win the election.  If all of your roles except for one has &#039;&#039;X = Not set&#039;&#039; and the remaining role has &#039;&#039;X = Allow&#039;&#039;, then you will be allowed to do X.  Again, it&#039;s like an election where only one person votes, and they vote for you!  For more complicated cases (e.g., roles assigned and overridden in different contexts) you need to understand [[How permissions are calculated]], but the principle is the same: By not voting, a role can allow other roles to determine the outcome of the election.  Roles with lots of permissions Not set tend to mix well with other roles. &lt;br /&gt;
&lt;br /&gt;
==What is my role here?==&lt;br /&gt;
&lt;br /&gt;
This is a frequently asked question, but an improper one.  The correct question is &amp;quot;What are my &#039;&#039;permissions&#039;&#039; here?&amp;quot;  In any given context, you often have two or more roles.  In addition, one or more role overrides may be in effect.  Your permissions in a given context are a result of &amp;quot;adding&amp;quot; the individual permissions from these roles and overrides according to certain rules.  As Tim Hunt writes in [http://moodle.org/mod/forum/discuss.php?d=90140 this discussion], the rules &amp;quot;normally do what you expect.&amp;quot;  However when permissions conflict, the results can be surprising, and it pays to understand [[How permissions are calculated]].&lt;br /&gt;
&lt;br /&gt;
==How do I debug a roles-related problem?==&lt;br /&gt;
&lt;br /&gt;
If you&#039;re having a problem that you suspect is related to roles, consider using [[The rolesdebug.php roles debugging script | the rolesdebug.php roles debugging script]].  You can download it from the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=1204 Modules and plugins database].  The script gives you a spatial view of your role assignments and overrides in a given context, and analyzes your permissions there.  To interpret the output requires a basic understanding of roles and capabilities.  If you are a complete roles novice, run the script and post the output to the [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities Forum].&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from changing their own password?==&lt;br /&gt;
&lt;br /&gt;
To prevent a user from changing their own password, you must make sure they do not have moodle/user:changeownpassword (&amp;quot;Change own password&amp;quot;) = Allow in the System context. The Authenticated user role (which is assigned to users in the System context) has moodle/user:changeownpassword = Allow by default, so you have two choices: &lt;br /&gt;
# edit Authenticated user, setting moodle/user:changeownpassword = Not set &lt;br /&gt;
# create a new role CannotChangeOwnPassword with moodle/user:changeownpassword = Prevent and all other permissions Not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles). &lt;br /&gt;
&lt;br /&gt;
Choice (1) will prevent &#039;&#039;all&#039;&#039; users from changing their passwords (except for the administrator, who can do anything).  To selectively allow selected users (say teachers) to change their passwords, you could create a new role CanChangeOwnPassword with moodle/user:changeownpassword = Allow and all other permissions not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles).&lt;br /&gt;
&lt;br /&gt;
Choice (2) allows you to be selective, but if you have a lot of users that you want to prevent (say, all students), you will have to make a lot of role assignments in the System context.  There is currently no convenient way to do this, so you might consider choice (1).&lt;br /&gt;
&lt;br /&gt;
Note that you MUST deal with this permission in the System context.&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from editing their own profile?==&lt;br /&gt;
&lt;br /&gt;
See [[Roles_FAQ#How can I prevent a user from changing their own password? | How can I prevent a user from changing their own password?]]  The answer to this question is the same if you substitute &#039;&#039;edit their own profile&#039;&#039; for &#039;&#039;change their own password&#039;&#039; and &#039;&#039;moodle/user:editownprofile&#039;&#039; for &#039;&#039;moodle/user:changeownpassword.&#039;&#039; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
==Are there any differences in Roles in Moodle 1.7 and 1.8?==&lt;br /&gt;
&lt;br /&gt;
In addition to many Roles fixes and refinements (see the list of [http://tracker.moodle.org/secure/IssueNavigator.jspa?mode=hide&amp;amp;requestId=10221 Roles improvements] in the Tracker), in Moodle 1.8 the &#039;&#039;system&#039;&#039; context is separated from the &#039;&#039;front page&#039;&#039; context. Roles may be assigned in the front page context via &#039;&#039;Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Duplicate role&amp;quot; button has been added in Moodle 1.8, which makes creating new roles based on predefined roles much quicker.&lt;br /&gt;
&lt;br /&gt;
==How do I change the name for &amp;quot;teacher&amp;quot; in the course description?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
* Edit the role of Teacher via &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; and rename it. The new name will apply site-wide.&lt;br /&gt;
Or&lt;br /&gt;
* Create a duplicate teacher role with an alternative name and assign users the duplicate teacher role as appropriate in the course context. In &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Course manager&#039;&#039; select the alternative name for teacher that you wish to be displayed in the course description.&lt;br /&gt;
Or&lt;br /&gt;
* One more way to do it in 1.8 is to create new &amp;quot;dummy&amp;quot; roles (no capabilities) with those names and assign them to teachers along with the real roles. In the course manager settings you can choose which roles display on the front page under each course. (The feature request [http://tracker.moodle.org/browse/MDL-9182 Ability to assign or display custom title for role of person in course] contains this further method.)&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}From Moodle 1.9 onwards, names for different roles in a course may be changed in the [[Course settings|course settings]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to set role overrides?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Edit the teacher role and change the capability [[Capabilities/moodle/role:override|moodle/role:override]] to allow.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
#Click the tab &amp;quot;Allow role overrides&amp;quot; (in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;).&lt;br /&gt;
#Check the appropriate box to allow a teacher to override the student role.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to assign other teachers in a course?==&lt;br /&gt;
&lt;br /&gt;
This is disabled by default but it can be switched on by modifying the teacher&#039;s role. In &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; select the &amp;quot;Allow role assignments&amp;quot; tab and tick the checkbox where Teacher and Teacher intersect.&lt;br /&gt;
&lt;br /&gt;
==Why doesn&#039;t &amp;quot;Switch role to..&amp;quot; within a course seem to work properly for a course creator?==&lt;br /&gt;
&lt;br /&gt;
This feature is intended for teachers so that they can see how their course appears for students. It doesn&#039;t work reliably outside the course.&lt;br /&gt;
&lt;br /&gt;
Further information about this feature can be found in [[Switch roles]] and the paragraph on testing a new role in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
==Are there any example roles?==&lt;br /&gt;
&lt;br /&gt;
Yes, as follows:&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role|Forum moderator]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Calendar editor role|Calendar editor]] - for providing a user with permission to add site events to the calendar&lt;br /&gt;
*[[Blogger role|Blogger]] - for limiting blogging to specific users only&lt;br /&gt;
*[[Quiz user with unlimited time role|Quiz user with unlimited time]] - for allowing a user unlimited time to attempt a quiz which has a time limit set&lt;br /&gt;
*[[Question creator role|Question creator]] - for enabling students to create questions for use in quizzes&lt;br /&gt;
&lt;br /&gt;
==Logged-in users can&#039;t read the site news. What can I do?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override permissions&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Scroll down to &#039;&#039;&#039;Forum&#039;&#039;&#039;&lt;br /&gt;
#Change the capability [[Capabilities/mod/forum:viewdiscussion|mod/forum:viewdiscussion]] to &#039;&#039;allow&#039;&#039;&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I enable logged-in users to participate in front page activities?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Change capabilities to &#039;&#039;allow&#039;&#039; for all required activities e.g. record a choice, reply to posts&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Note that for this to work, you need to make the default role for all users &amp;quot;authenticated user&amp;quot;. This is the default for new versions of Moodle. In older versions, the default setting is guest, so if you have recently upgraded, you may have to change this setting. You can change the setting via &#039;&#039;Site Administration &amp;gt; Permissions &amp;gt; User Policies&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Click on Student&lt;br /&gt;
#Select all users in the potential users list, and use the left-facing arrow button to add them to the existing users list&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I copy a custom role from one Moodle site to another==&lt;br /&gt;
&lt;br /&gt;
There is no import and export facility for roles, but it can be achieved nearly as easily using backup and restore.&lt;br /&gt;
&lt;br /&gt;
# Create an empty course with all the default settings&lt;br /&gt;
# Assign anybody to your custom role (or roles) within the course&lt;br /&gt;
# Backup the course (all defaults are fine)&lt;br /&gt;
# Download the backup file&lt;br /&gt;
# Upload the backup file to the site files of the target Moodle&lt;br /&gt;
# Restore the course (all defaults are fine)&lt;br /&gt;
# Delete the course.&lt;br /&gt;
&lt;br /&gt;
You will find that the custom roles have been recreated in the target site.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities forum]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[de:Rollen FAQ]]&lt;br /&gt;
[[es:FAQ_roles]]&lt;br /&gt;
[[fr:FAQ des rôles]]&lt;br /&gt;
[[ja:ロールFAQ]]&lt;br /&gt;
[[ru:FAQ по ролям]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40245</id>
		<title>Roles FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40245"/>
		<updated>2008-07-22T16:19:29Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* What is the definition of a... */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
==What is the definition of a...==&lt;br /&gt;
&lt;br /&gt;
;Capability&lt;br /&gt;
:A configurable aspect of behavior.  As of version 1.9 Moodle has over 200 capabilities.   Each capability has a computer friendly name like [[Capabilities/mod/forum:rate|mod/forum:rate]] and a human-friendly name like &amp;quot;Rate posts.&amp;quot;&lt;br /&gt;
;Permission&lt;br /&gt;
:A capability and its value considered as a pair.  There are four possible values: &#039;&#039;Not set&#039;&#039; (known as &#039;&#039;Inherit&#039;&#039; in 1.7), &#039;&#039;Allow&#039;&#039;, &#039;&#039;Prevent&#039;&#039;, and &#039;&#039;Prohibit&#039;&#039;&lt;br /&gt;
;Role&lt;br /&gt;
:A named set of permissions, for example Teacher, Student and Forum moderator&lt;br /&gt;
;Context&lt;br /&gt;
:A functional area of Moodle, such as a course, module or block&lt;br /&gt;
&lt;br /&gt;
==Why isn&#039;t my role change taking effect?==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.7.x and 1.8.x, role assignments and overrides do not take effect immediately.  They are delayed until the next time the user logs in.  Starting with Moodle 1.9, explicit role assignments and overrides take effect immediately. However role assignments resulting from changes to certain user policies (for example, changing the default front page role) may be delayed until the next login.&lt;br /&gt;
&lt;br /&gt;
If you are testing a new role, [[Manage_roles#Testing_a_new_role | here are some suggestions]].&lt;br /&gt;
&lt;br /&gt;
Also, please check the context in which the role is assigned. Certain capabilities e.g. [[Capabilities/moodle/user:update|moodle/user:update]] may only be applied in the system context, so assigning a role in the course context will result in the role change not taking effect.&lt;br /&gt;
&lt;br /&gt;
==Why are all my teacher accounts automatically added as &amp;quot;Teachers&amp;quot; in all my courses?==&lt;br /&gt;
&lt;br /&gt;
If a user is assigned a role in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles) or in a Course category context, then the user will have this role in ALL courses within the context. For example, a user who is assigned the Teacher role in the System context will appear as a Teacher in all courses on the site, including the Front page course.&lt;br /&gt;
&lt;br /&gt;
Except in very special cases, teachers and students should be assigned their respective roles in a Course context.  When these roles are assigned in a System context, it is almost always an error on the part of the administrator.&lt;br /&gt;
&lt;br /&gt;
If you have accidentally assigned a System role, go to &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039; unassign users using the right-facing arrow button.  Then re-assign the roles in the appropriate Course context.&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
*Users are assigned the role of student in the site/system context rather than the course context (see FAQ above)&lt;br /&gt;
Or&lt;br /&gt;
*The default role for all users in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to Student rather than Authenticated user (Moodle 1.8 onwards).&lt;br /&gt;
&lt;br /&gt;
==Why are there differences in the users listed as course participants and users assigned roles in a course?==&lt;br /&gt;
&lt;br /&gt;
Users assigned roles in a higher context, for example users assigned the role of teacher in a course category context, may appear as course participants. The discussion [http://moodle.org/mod/forum/discuss.php?d=59900 Discrepancies between Assign Roles lists and Participants list] contains a longer explanation. &lt;br /&gt;
&lt;br /&gt;
==How can I prevent administrators being listed as course participants?==&lt;br /&gt;
&lt;br /&gt;
Ensure that administrators are not assigned another role in addition to their admin role.&lt;br /&gt;
&lt;br /&gt;
==Why are hidden assignments still visible?==&lt;br /&gt;
&lt;br /&gt;
Hidden assignments are not hidden from admins or teachers i.e. users with the [[Capabilities/moodle/role:viewhiddenassigns|viewhiddenassigns capability]].&lt;br /&gt;
&lt;br /&gt;
==What is the difference between Prevent and Not set?==&lt;br /&gt;
&lt;br /&gt;
If a role has capability &#039;&#039;X = Not set&#039;&#039;, then the role is saying &amp;quot;I don&#039;t care about X.&amp;quot;  If a role has &#039;&#039;X = Prevent,&#039;&#039; then the role is saying &amp;quot;I don&#039;t want you be able to do X.&amp;quot;  Now you typically have multiple roles in a given context, and those roles may have different opinions about &#039;&#039;X&#039;&#039;. If ALL of your roles have &#039;&#039;X = Not set&#039;&#039; then you will be effectively prevented from doing &#039;&#039;X&#039;&#039; because you need positive permission to do something.  It&#039;s just like an election.  If you are a candidate but no one votes, you don&#039;t win the election.  If all of your roles except for one has &#039;&#039;X = Not set&#039;&#039; and the remaining role has &#039;&#039;X = Allow&#039;&#039;, then you will be allowed to do X.  Again, it&#039;s like an election where only one person votes, and they vote for you!  For more complicated cases (e.g., roles assigned and overridden in different contexts) you need to understand [[How permissions are calculated]], but the principle is the same: By not voting, a role can allow other roles to determine the outcome of the election.  Roles with lots of permissions Not set tend to mix well with other roles. &lt;br /&gt;
&lt;br /&gt;
==What is my role here?==&lt;br /&gt;
&lt;br /&gt;
This is a frequently asked question, but an improper one.  The correct question is &amp;quot;What are my &#039;&#039;permissions&#039;&#039; here?&amp;quot;  In any given context, you often have two or more roles.  In addition, one or more role overrides may be in effect.  Your permissions in a given context are a result of &amp;quot;adding&amp;quot; the individual permissions from these roles and overrides according to certain rules.  As Tim Hunt writes in [http://moodle.org/mod/forum/discuss.php?d=90140 this discussion], the rules &amp;quot;normally do what you expect.&amp;quot;  However when permissions conflict, the results can be surprising, and it pays to understand [[How permissions are calculated]].&lt;br /&gt;
&lt;br /&gt;
==How do I debug a roles-related problem?==&lt;br /&gt;
&lt;br /&gt;
If you&#039;re having a problem that you suspect is related to roles, consider using [[The rolesdebug.php roles debugging script | the rolesdebug.php roles debugging script]].  You can download it from the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=1204 Modules and plugins database].  The script gives you a spatial view of your role assignments and overrides in a given context, and analyzes your permissions there.  To interpret the output requires a basic understanding of roles and capabilities.  If you are a complete roles novice, run the script and post the output to the [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities Forum].&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from changing their own password?==&lt;br /&gt;
&lt;br /&gt;
To prevent a user from changing their own password, you must make sure they do not have moodle/user:changeownpassword (&amp;quot;Change own password&amp;quot;) = Allow in the System context. The Authenticated user role (which is assigned to users in the System context) has moodle/user:changeownpassword = Allow by default, so you have two choices: &lt;br /&gt;
# edit Authenticated user, setting moodle/user:changeownpassword = Not set &lt;br /&gt;
# create a new role CannotChangeOwnPassword with moodle/user:changeownpassword = Prevent and all other permissions Not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles). &lt;br /&gt;
&lt;br /&gt;
Choice (1) will prevent &#039;&#039;all&#039;&#039; users from changing their passwords (except for the administrator, who can do anything).  To selectively allow selected users (say teachers) to change their passwords, you could create a new role CanChangeOwnPassword with moodle/user:changeownpassword = Allow and all other permissions not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles).&lt;br /&gt;
&lt;br /&gt;
Choice (2) allows you to be selective, but if you have a lot of users that you want to prevent (say, all students), you will have to make a lot of role assignments in the System context.  There is currently no convenient way to do this, so you might consider choice (1).&lt;br /&gt;
&lt;br /&gt;
Note that you MUST deal with this permission in the System context.&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from editing their own profile?==&lt;br /&gt;
&lt;br /&gt;
See [[Roles_FAQ#How can I prevent a user from changing their own password? | How can I prevent a user from changing their own password?]]  The answer to this question is the same if you substitute &#039;&#039;edit their own profile&#039;&#039; for &#039;&#039;change their own password&#039;&#039; and &#039;&#039;moodle/user:editownprofile&#039;&#039; for &#039;&#039;moodle/user:changeownpassword.&#039;&#039; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
==Are there any differences in Roles in Moodle 1.7 and 1.8?==&lt;br /&gt;
&lt;br /&gt;
In addition to many Roles fixes and refinements (see the list of [http://tracker.moodle.org/secure/IssueNavigator.jspa?mode=hide&amp;amp;requestId=10221 Roles improvements] in the Tracker), in Moodle 1.8 the &#039;&#039;system&#039;&#039; context is separated from the &#039;&#039;front page&#039;&#039; context. Roles may be assigned in the front page context via &#039;&#039;Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Duplicate role&amp;quot; button has been added in Moodle 1.8, which makes creating new roles based on predefined roles much quicker.&lt;br /&gt;
&lt;br /&gt;
==How do I change the name for &amp;quot;teacher&amp;quot; in the course description?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
* Edit the role of Teacher via &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; and rename it. The new name will apply site-wide.&lt;br /&gt;
Or&lt;br /&gt;
* Create a duplicate teacher role with an alternative name and assign users the duplicate teacher role as appropriate in the course context. In &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Course manager&#039;&#039; select the alternative name for teacher that you wish to be displayed in the course description.&lt;br /&gt;
Or&lt;br /&gt;
* One more way to do it in 1.8 is to create new &amp;quot;dummy&amp;quot; roles (no capabilities) with those names and assign them to teachers along with the real roles. In the course manager settings you can choose which roles display on the front page under each course. (The feature request [http://tracker.moodle.org/browse/MDL-9182 Ability to assign or display custom title for role of person in course] contains this further method.)&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}From Moodle 1.9 onwards, names for different roles in a course may be changed in the [[Course settings|course settings]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to set role overrides?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Edit the teacher role and change the capability [[Capabilities/moodle/role:override|moodle/role:override]] to allow.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
#Click the tab &amp;quot;Allow role overrides&amp;quot; (in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;).&lt;br /&gt;
#Check the appropriate box to allow a teacher to override the student role.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to assign other teachers in a course?==&lt;br /&gt;
&lt;br /&gt;
This is disabled by default but it can be switched on by modifying the teacher&#039;s role. In &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; select the &amp;quot;Allow role assignments&amp;quot; tab and tick the checkbox where Teacher and Teacher intersect.&lt;br /&gt;
&lt;br /&gt;
==Why doesn&#039;t &amp;quot;Switch role to..&amp;quot; within a course seem to work properly for a course creator?==&lt;br /&gt;
&lt;br /&gt;
This feature is intended for teachers so that they can see how their course appears for students. It doesn&#039;t work reliably outside the course.&lt;br /&gt;
&lt;br /&gt;
Further information about this feature can be found in [[Switch roles]] and the paragraph on testing a new role in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
==Are there any example roles?==&lt;br /&gt;
&lt;br /&gt;
Yes, as follows:&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role|Forum moderator]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Calendar editor role|Calendar editor]] - for providing a user with permission to add site events to the calendar&lt;br /&gt;
*[[Blogger role|Blogger]] - for limiting blogging to specific users only&lt;br /&gt;
*[[Quiz user with unlimited time role|Quiz user with unlimited time]] - for allowing a user unlimited time to attempt a quiz which has a time limit set&lt;br /&gt;
*[[Question creator role|Question creator]] - for enabling students to create questions for use in quizzes&lt;br /&gt;
&lt;br /&gt;
==Logged-in users can&#039;t read the site news. What can I do?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override permissions&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Scroll down to &#039;&#039;&#039;Forum&#039;&#039;&#039;&lt;br /&gt;
#Change the capability [[Capabilities/mod/forum:viewdiscussion|mod/forum:viewdiscussion]] to &#039;&#039;allow&#039;&#039;&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I enable logged-in users to participate in front page activities?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Change capabilities to &#039;&#039;allow&#039;&#039; for all required activities e.g. record a choice, reply to posts&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Note that for this to work, you need to make the default role for all users &amp;quot;authenticated user&amp;quot;. This is the default for new versions of Moodle. In older versions, the default setting is guest, so if you have recently upgraded, you may have to change this setting. You can change the setting via &#039;&#039;Site Administration &amp;gt; Permissions &amp;gt; User Policies&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Click on Student&lt;br /&gt;
#Select all users in the potential users list, and use the left-facing arrow button to add them to the existing users list&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I copy a custom role from one Moodle site to another==&lt;br /&gt;
&lt;br /&gt;
There is no import and export facility for roles, but it can be achieved nearly as easily using backup and restore.&lt;br /&gt;
&lt;br /&gt;
# Create an empty course with all the default settings&lt;br /&gt;
# Assign anybody to your custom role (or roles) within the course&lt;br /&gt;
# Backup the course (all defaults are fine)&lt;br /&gt;
# Download the backup file&lt;br /&gt;
# Upload the backup file to the site files of the target Moodle&lt;br /&gt;
# Restore the course (all defaults are fine)&lt;br /&gt;
# Delete the course.&lt;br /&gt;
&lt;br /&gt;
You will find that the custom roles have been recreated in the target site.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities forum]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[de:Rollen FAQ]]&lt;br /&gt;
[[es:FAQ_roles]]&lt;br /&gt;
[[fr:FAQ des rôles]]&lt;br /&gt;
[[ja:ロールFAQ]]&lt;br /&gt;
[[ru:FAQ по ролям]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40244</id>
		<title>Roles FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40244"/>
		<updated>2008-07-22T16:16:00Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* What is the definition of a... */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
==What is the definition of a...==&lt;br /&gt;
&lt;br /&gt;
;Capability&lt;br /&gt;
:A configurable aspect of behavior, for example [[Capabilities/mod/forum:rate|mod/forum:rate]]&lt;br /&gt;
;Permission&lt;br /&gt;
:A capability and its value considered as a pair.  There are four possible values: &#039;&#039;Not set&#039;&#039; (known as &#039;&#039;Inherit&#039;&#039; in 1.7), &#039;&#039;Allow&#039;&#039;, &#039;&#039;Prevent&#039;&#039;, and &#039;&#039;Prohibit&#039;&#039;&lt;br /&gt;
;Role&lt;br /&gt;
:A named set of permissions, for example Teacher, Student and Forum moderator&lt;br /&gt;
;Context&lt;br /&gt;
:A functional area of Moodle, such as a course, module or block&lt;br /&gt;
&lt;br /&gt;
==Why isn&#039;t my role change taking effect?==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.7.x and 1.8.x, role assignments and overrides do not take effect immediately.  They are delayed until the next time the user logs in.  Starting with Moodle 1.9, explicit role assignments and overrides take effect immediately. However role assignments resulting from changes to certain user policies (for example, changing the default front page role) may be delayed until the next login.&lt;br /&gt;
&lt;br /&gt;
If you are testing a new role, [[Manage_roles#Testing_a_new_role | here are some suggestions]].&lt;br /&gt;
&lt;br /&gt;
Also, please check the context in which the role is assigned. Certain capabilities e.g. [[Capabilities/moodle/user:update|moodle/user:update]] may only be applied in the system context, so assigning a role in the course context will result in the role change not taking effect.&lt;br /&gt;
&lt;br /&gt;
==Why are all my teacher accounts automatically added as &amp;quot;Teachers&amp;quot; in all my courses?==&lt;br /&gt;
&lt;br /&gt;
If a user is assigned a role in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles) or in a Course category context, then the user will have this role in ALL courses within the context. For example, a user who is assigned the Teacher role in the System context will appear as a Teacher in all courses on the site, including the Front page course.&lt;br /&gt;
&lt;br /&gt;
Except in very special cases, teachers and students should be assigned their respective roles in a Course context.  When these roles are assigned in a System context, it is almost always an error on the part of the administrator.&lt;br /&gt;
&lt;br /&gt;
If you have accidentally assigned a System role, go to &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039; unassign users using the right-facing arrow button.  Then re-assign the roles in the appropriate Course context.&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
*Users are assigned the role of student in the site/system context rather than the course context (see FAQ above)&lt;br /&gt;
Or&lt;br /&gt;
*The default role for all users in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to Student rather than Authenticated user (Moodle 1.8 onwards).&lt;br /&gt;
&lt;br /&gt;
==Why are there differences in the users listed as course participants and users assigned roles in a course?==&lt;br /&gt;
&lt;br /&gt;
Users assigned roles in a higher context, for example users assigned the role of teacher in a course category context, may appear as course participants. The discussion [http://moodle.org/mod/forum/discuss.php?d=59900 Discrepancies between Assign Roles lists and Participants list] contains a longer explanation. &lt;br /&gt;
&lt;br /&gt;
==How can I prevent administrators being listed as course participants?==&lt;br /&gt;
&lt;br /&gt;
Ensure that administrators are not assigned another role in addition to their admin role.&lt;br /&gt;
&lt;br /&gt;
==Why are hidden assignments still visible?==&lt;br /&gt;
&lt;br /&gt;
Hidden assignments are not hidden from admins or teachers i.e. users with the [[Capabilities/moodle/role:viewhiddenassigns|viewhiddenassigns capability]].&lt;br /&gt;
&lt;br /&gt;
==What is the difference between Prevent and Not set?==&lt;br /&gt;
&lt;br /&gt;
If a role has capability &#039;&#039;X = Not set&#039;&#039;, then the role is saying &amp;quot;I don&#039;t care about X.&amp;quot;  If a role has &#039;&#039;X = Prevent,&#039;&#039; then the role is saying &amp;quot;I don&#039;t want you be able to do X.&amp;quot;  Now you typically have multiple roles in a given context, and those roles may have different opinions about &#039;&#039;X&#039;&#039;. If ALL of your roles have &#039;&#039;X = Not set&#039;&#039; then you will be effectively prevented from doing &#039;&#039;X&#039;&#039; because you need positive permission to do something.  It&#039;s just like an election.  If you are a candidate but no one votes, you don&#039;t win the election.  If all of your roles except for one has &#039;&#039;X = Not set&#039;&#039; and the remaining role has &#039;&#039;X = Allow&#039;&#039;, then you will be allowed to do X.  Again, it&#039;s like an election where only one person votes, and they vote for you!  For more complicated cases (e.g., roles assigned and overridden in different contexts) you need to understand [[How permissions are calculated]], but the principle is the same: By not voting, a role can allow other roles to determine the outcome of the election.  Roles with lots of permissions Not set tend to mix well with other roles. &lt;br /&gt;
&lt;br /&gt;
==What is my role here?==&lt;br /&gt;
&lt;br /&gt;
This is a frequently asked question, but an improper one.  The correct question is &amp;quot;What are my &#039;&#039;permissions&#039;&#039; here?&amp;quot;  In any given context, you often have two or more roles.  In addition, one or more role overrides may be in effect.  Your permissions in a given context are a result of &amp;quot;adding&amp;quot; the individual permissions from these roles and overrides according to certain rules.  As Tim Hunt writes in [http://moodle.org/mod/forum/discuss.php?d=90140 this discussion], the rules &amp;quot;normally do what you expect.&amp;quot;  However when permissions conflict, the results can be surprising, and it pays to understand [[How permissions are calculated]].&lt;br /&gt;
&lt;br /&gt;
==How do I debug a roles-related problem?==&lt;br /&gt;
&lt;br /&gt;
If you&#039;re having a problem that you suspect is related to roles, consider using [[The rolesdebug.php roles debugging script | the rolesdebug.php roles debugging script]].  You can download it from the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=1204 Modules and plugins database].  The script gives you a spatial view of your role assignments and overrides in a given context, and analyzes your permissions there.  To interpret the output requires a basic understanding of roles and capabilities.  If you are a complete roles novice, run the script and post the output to the [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities Forum].&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from changing their own password?==&lt;br /&gt;
&lt;br /&gt;
To prevent a user from changing their own password, you must make sure they do not have moodle/user:changeownpassword (&amp;quot;Change own password&amp;quot;) = Allow in the System context. The Authenticated user role (which is assigned to users in the System context) has moodle/user:changeownpassword = Allow by default, so you have two choices: &lt;br /&gt;
# edit Authenticated user, setting moodle/user:changeownpassword = Not set &lt;br /&gt;
# create a new role CannotChangeOwnPassword with moodle/user:changeownpassword = Prevent and all other permissions Not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles). &lt;br /&gt;
&lt;br /&gt;
Choice (1) will prevent &#039;&#039;all&#039;&#039; users from changing their passwords (except for the administrator, who can do anything).  To selectively allow selected users (say teachers) to change their passwords, you could create a new role CanChangeOwnPassword with moodle/user:changeownpassword = Allow and all other permissions not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles).&lt;br /&gt;
&lt;br /&gt;
Choice (2) allows you to be selective, but if you have a lot of users that you want to prevent (say, all students), you will have to make a lot of role assignments in the System context.  There is currently no convenient way to do this, so you might consider choice (1).&lt;br /&gt;
&lt;br /&gt;
Note that you MUST deal with this permission in the System context.&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from editing their own profile?==&lt;br /&gt;
&lt;br /&gt;
See [[Roles_FAQ#How can I prevent a user from changing their own password? | How can I prevent a user from changing their own password?]]  The answer to this question is the same if you substitute &#039;&#039;edit their own profile&#039;&#039; for &#039;&#039;change their own password&#039;&#039; and &#039;&#039;moodle/user:editownprofile&#039;&#039; for &#039;&#039;moodle/user:changeownpassword.&#039;&#039; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
==Are there any differences in Roles in Moodle 1.7 and 1.8?==&lt;br /&gt;
&lt;br /&gt;
In addition to many Roles fixes and refinements (see the list of [http://tracker.moodle.org/secure/IssueNavigator.jspa?mode=hide&amp;amp;requestId=10221 Roles improvements] in the Tracker), in Moodle 1.8 the &#039;&#039;system&#039;&#039; context is separated from the &#039;&#039;front page&#039;&#039; context. Roles may be assigned in the front page context via &#039;&#039;Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Duplicate role&amp;quot; button has been added in Moodle 1.8, which makes creating new roles based on predefined roles much quicker.&lt;br /&gt;
&lt;br /&gt;
==How do I change the name for &amp;quot;teacher&amp;quot; in the course description?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
* Edit the role of Teacher via &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; and rename it. The new name will apply site-wide.&lt;br /&gt;
Or&lt;br /&gt;
* Create a duplicate teacher role with an alternative name and assign users the duplicate teacher role as appropriate in the course context. In &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Course manager&#039;&#039; select the alternative name for teacher that you wish to be displayed in the course description.&lt;br /&gt;
Or&lt;br /&gt;
* One more way to do it in 1.8 is to create new &amp;quot;dummy&amp;quot; roles (no capabilities) with those names and assign them to teachers along with the real roles. In the course manager settings you can choose which roles display on the front page under each course. (The feature request [http://tracker.moodle.org/browse/MDL-9182 Ability to assign or display custom title for role of person in course] contains this further method.)&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}From Moodle 1.9 onwards, names for different roles in a course may be changed in the [[Course settings|course settings]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to set role overrides?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Edit the teacher role and change the capability [[Capabilities/moodle/role:override|moodle/role:override]] to allow.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
#Click the tab &amp;quot;Allow role overrides&amp;quot; (in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;).&lt;br /&gt;
#Check the appropriate box to allow a teacher to override the student role.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to assign other teachers in a course?==&lt;br /&gt;
&lt;br /&gt;
This is disabled by default but it can be switched on by modifying the teacher&#039;s role. In &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; select the &amp;quot;Allow role assignments&amp;quot; tab and tick the checkbox where Teacher and Teacher intersect.&lt;br /&gt;
&lt;br /&gt;
==Why doesn&#039;t &amp;quot;Switch role to..&amp;quot; within a course seem to work properly for a course creator?==&lt;br /&gt;
&lt;br /&gt;
This feature is intended for teachers so that they can see how their course appears for students. It doesn&#039;t work reliably outside the course.&lt;br /&gt;
&lt;br /&gt;
Further information about this feature can be found in [[Switch roles]] and the paragraph on testing a new role in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
==Are there any example roles?==&lt;br /&gt;
&lt;br /&gt;
Yes, as follows:&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role|Forum moderator]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Calendar editor role|Calendar editor]] - for providing a user with permission to add site events to the calendar&lt;br /&gt;
*[[Blogger role|Blogger]] - for limiting blogging to specific users only&lt;br /&gt;
*[[Quiz user with unlimited time role|Quiz user with unlimited time]] - for allowing a user unlimited time to attempt a quiz which has a time limit set&lt;br /&gt;
*[[Question creator role|Question creator]] - for enabling students to create questions for use in quizzes&lt;br /&gt;
&lt;br /&gt;
==Logged-in users can&#039;t read the site news. What can I do?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override permissions&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Scroll down to &#039;&#039;&#039;Forum&#039;&#039;&#039;&lt;br /&gt;
#Change the capability [[Capabilities/mod/forum:viewdiscussion|mod/forum:viewdiscussion]] to &#039;&#039;allow&#039;&#039;&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I enable logged-in users to participate in front page activities?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Change capabilities to &#039;&#039;allow&#039;&#039; for all required activities e.g. record a choice, reply to posts&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Note that for this to work, you need to make the default role for all users &amp;quot;authenticated user&amp;quot;. This is the default for new versions of Moodle. In older versions, the default setting is guest, so if you have recently upgraded, you may have to change this setting. You can change the setting via &#039;&#039;Site Administration &amp;gt; Permissions &amp;gt; User Policies&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Click on Student&lt;br /&gt;
#Select all users in the potential users list, and use the left-facing arrow button to add them to the existing users list&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I copy a custom role from one Moodle site to another==&lt;br /&gt;
&lt;br /&gt;
There is no import and export facility for roles, but it can be achieved nearly as easily using backup and restore.&lt;br /&gt;
&lt;br /&gt;
# Create an empty course with all the default settings&lt;br /&gt;
# Assign anybody to your custom role (or roles) within the course&lt;br /&gt;
# Backup the course (all defaults are fine)&lt;br /&gt;
# Download the backup file&lt;br /&gt;
# Upload the backup file to the site files of the target Moodle&lt;br /&gt;
# Restore the course (all defaults are fine)&lt;br /&gt;
# Delete the course.&lt;br /&gt;
&lt;br /&gt;
You will find that the custom roles have been recreated in the target site.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities forum]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[de:Rollen FAQ]]&lt;br /&gt;
[[es:FAQ_roles]]&lt;br /&gt;
[[fr:FAQ des rôles]]&lt;br /&gt;
[[ja:ロールFAQ]]&lt;br /&gt;
[[ru:FAQ по ролям]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Enrolment_FAQ&amp;diff=40193</id>
		<title>Enrolment FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Enrolment_FAQ&amp;diff=40193"/>
		<updated>2008-07-22T01:11:37Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* How do I prevent users from enrolling themselves on courses? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&lt;br /&gt;
==How do I prevent students from enrolling themselves in a course?==&lt;br /&gt;
&lt;br /&gt;
Student-initiated enrollment (also known as [[Internal enrolment]]) is one of the standard enrollment methods supported by Moodle.  In fact, it is the only method that cannot be disabled sitewide by the administrator.  Fortunately, there are a few methods you can use to effectively prevent students from enrolling themselves in your course.&lt;br /&gt;
*Set &#039;&#039;Course enrollable&#039;&#039; to &#039;&#039;No&#039;&#039; in the course settings. This disables internal enrollment for your course. &lt;br /&gt;
*Set an [[Enrolment key|enrolment key]] in the course settings.  Students will only be able to enroll if they know the key.  Naturally, you will keep the key secret. &lt;br /&gt;
&lt;br /&gt;
Note that neither method prevents teachers from [[Enrolment#Manual enrolment|manually enrolling]] students (Course administration -&amp;gt; Assign roles).&lt;br /&gt;
&lt;br /&gt;
== Why are users being unenrolled for no apparent reason? ==&lt;br /&gt;
&lt;br /&gt;
Please check the following:&lt;br /&gt;
*The &#039;&#039;longtimenosee&#039;&#039; variable in &#039;&#039;Site Administration &amp;gt; Server &amp;gt; Cleanup&#039;&#039; (or Administration &amp;gt; Configuration &amp;gt; Variables in Moodle 1.6) which specifies the time limit for which, if students haven&#039;t logged in, they are unenrolled from courses.&lt;br /&gt;
*The &#039;&#039;Enrolment duration&#039;&#039; in the [[course/edit|Course settings]] which unenrols students after the specified time has elapsed.&lt;br /&gt;
&lt;br /&gt;
(See [[Unenrolment]] for a full list of what controls unenrolment.)&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
If the default role for all users in &#039;&#039;Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to student rather than authenticated user (the default setting), this will result in all students being enrolled in all courses.&lt;br /&gt;
&lt;br /&gt;
Another possibility is that users are assigned the system role of student. Check &#039;&#039;Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039; and unassign users as necessary, then reassign them the role of student in the course context.&lt;br /&gt;
&lt;br /&gt;
==Why can&#039;t I select &amp;quot;External Database&amp;quot; from the enrolment plugins drop-down menu in the course settings?==&lt;br /&gt;
&lt;br /&gt;
Only &#039;&#039;interactive&#039;&#039; enrolment methods may be chosen in the course settings. Non-interactive enrolment plugins are set for the entire site in &#039;&#039;Site Administration&#039;&#039; &amp;gt; &#039;&#039;Enrolment&#039;&#039;. Please refer to the interactive enrolment section of [[Enrolment plugins]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable students to unenrol themselves from courses?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Click the edit icon opposite the student role.&lt;br /&gt;
#Change the [[Capabilities/moodle/role:unassignself|moodle/role:unassignself]] capability from not set to allow.&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
(See [[Unenrolment]] for instructions on how to enable students to unenrol themselves from a particular course.)&lt;br /&gt;
&lt;br /&gt;
==How do I prevent teachers from unenrolling themselves from their course by mistake?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Click the edit icon opposite the teacher role.&lt;br /&gt;
#Change the [[Capabilities/moodle/role:unassignself|moodle/role:unassignself]] capability from allow to not set.&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
==How do I change the spelling of &amp;quot;enrol&amp;quot; to &amp;quot;enroll&amp;quot;?==&lt;br /&gt;
&lt;br /&gt;
Simply install the American English language pack (en_us) then choose it as the default language for the site. Or [[Language editing|edit your language]] settings.&lt;br /&gt;
&lt;br /&gt;
==Is there a way for teachers to be notified when students enrol in a course?==&lt;br /&gt;
&lt;br /&gt;
No notifications will be sent when students are allowed to enrol by the [[Internal enrolment]] process.  It can be done by changing the open source code, but not by through the interface. Other enrolment methods (for example [[Flat file]]) can allow emails when enrolment is complete but these are not student initiated.&lt;br /&gt;
&lt;br /&gt;
==When a student enrols using an enrolment key, they get a welcome e-mail message.  Can a teacher customise this at the course level?==&lt;br /&gt;
&lt;br /&gt;
Entering text for the message is described [[Email_processing#Email_confirmation_or_registration_words.2C_and_how_to_edit_them| Documentation here]].  But at the course level, not possible without a hack.&lt;br /&gt;
&lt;br /&gt;
==Where in the database is the relationship between user and course?==&lt;br /&gt;
&lt;br /&gt;
Prior to Moodle 1.7, enrollments were represented by two simple tables:  mdl_user_students and mdl_user_teachers.  Under the new Roles and Capabilities System introduced in Moodle 1.7, the concept of enrollment has been generalized.  The word &amp;quot;Enroll&amp;quot; should literally be read as &amp;quot;Assign a role to.&amp;quot;  To accomodate this flexibility, the database model has changed.  There is now a mdl_role_assignments table that holds the equivalent information.  For more information, see [[Development:Roles|the roles development documentation]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Enrolment]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Enrolment_FAQ&amp;diff=40192</id>
		<title>Enrolment FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Enrolment_FAQ&amp;diff=40192"/>
		<updated>2008-07-22T00:54:20Z</updated>

		<summary type="html">&lt;p&gt;Jisner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&lt;br /&gt;
==How do I prevent users from enrolling themselves on courses?==&lt;br /&gt;
&lt;br /&gt;
There are several methods to prevent or restrict [[Internal enrolment]] by a student. &lt;br /&gt;
*Set an [[Enrolment key|enrolment key]] in the course settings, so whilst the student can automatically enrol, they will need the key to complete the process. &lt;br /&gt;
*Set &#039;&#039;Course enrollable&#039;&#039; to &#039;&#039;No&#039;&#039; in the course settings. This stops the internal enrolment (student initiated enrolment) process.&lt;br /&gt;
&lt;br /&gt;
Note that neither method will prevent [[Enrolment#Manual enrolment|manual enrolments]] or [[Enrolment plugins]] from working.&lt;br /&gt;
&lt;br /&gt;
== Why are users being unenrolled for no apparent reason? ==&lt;br /&gt;
&lt;br /&gt;
Please check the following:&lt;br /&gt;
*The &#039;&#039;longtimenosee&#039;&#039; variable in &#039;&#039;Site Administration &amp;gt; Server &amp;gt; Cleanup&#039;&#039; (or Administration &amp;gt; Configuration &amp;gt; Variables in Moodle 1.6) which specifies the time limit for which, if students haven&#039;t logged in, they are unenrolled from courses.&lt;br /&gt;
*The &#039;&#039;Enrolment duration&#039;&#039; in the [[course/edit|Course settings]] which unenrols students after the specified time has elapsed.&lt;br /&gt;
&lt;br /&gt;
(See [[Unenrolment]] for a full list of what controls unenrolment.)&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
If the default role for all users in &#039;&#039;Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to student rather than authenticated user (the default setting), this will result in all students being enrolled in all courses.&lt;br /&gt;
&lt;br /&gt;
Another possibility is that users are assigned the system role of student. Check &#039;&#039;Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039; and unassign users as necessary, then reassign them the role of student in the course context.&lt;br /&gt;
&lt;br /&gt;
==Why can&#039;t I select &amp;quot;External Database&amp;quot; from the enrolment plugins drop-down menu in the course settings?==&lt;br /&gt;
&lt;br /&gt;
Only &#039;&#039;interactive&#039;&#039; enrolment methods may be chosen in the course settings. Non-interactive enrolment plugins are set for the entire site in &#039;&#039;Site Administration&#039;&#039; &amp;gt; &#039;&#039;Enrolment&#039;&#039;. Please refer to the interactive enrolment section of [[Enrolment plugins]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable students to unenrol themselves from courses?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Click the edit icon opposite the student role.&lt;br /&gt;
#Change the [[Capabilities/moodle/role:unassignself|moodle/role:unassignself]] capability from not set to allow.&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
(See [[Unenrolment]] for instructions on how to enable students to unenrol themselves from a particular course.)&lt;br /&gt;
&lt;br /&gt;
==How do I prevent teachers from unenrolling themselves from their course by mistake?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Click the edit icon opposite the teacher role.&lt;br /&gt;
#Change the [[Capabilities/moodle/role:unassignself|moodle/role:unassignself]] capability from allow to not set.&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
==How do I change the spelling of &amp;quot;enrol&amp;quot; to &amp;quot;enroll&amp;quot;?==&lt;br /&gt;
&lt;br /&gt;
Simply install the American English language pack (en_us) then choose it as the default language for the site. Or [[Language editing|edit your language]] settings.&lt;br /&gt;
&lt;br /&gt;
==Is there a way for teachers to be notified when students enrol in a course?==&lt;br /&gt;
&lt;br /&gt;
No notifications will be sent when students are allowed to enrol by the [[Internal enrolment]] process.  It can be done by changing the open source code, but not by through the interface. Other enrolment methods (for example [[Flat file]]) can allow emails when enrolment is complete but these are not student initiated.&lt;br /&gt;
&lt;br /&gt;
==When a student enrols using an enrolment key, they get a welcome e-mail message.  Can a teacher customise this at the course level?==&lt;br /&gt;
&lt;br /&gt;
Entering text for the message is described [[Email_processing#Email_confirmation_or_registration_words.2C_and_how_to_edit_them| Documentation here]].  But at the course level, not possible without a hack.&lt;br /&gt;
&lt;br /&gt;
==Where in the database is the relationship between user and course?==&lt;br /&gt;
&lt;br /&gt;
Prior to Moodle 1.7, enrollments were represented by two simple tables:  mdl_user_students and mdl_user_teachers.  Under the new Roles and Capabilities System introduced in Moodle 1.7, the concept of enrollment has been generalized.  The word &amp;quot;Enroll&amp;quot; should literally be read as &amp;quot;Assign a role to.&amp;quot;  To accomodate this flexibility, the database model has changed.  There is now a mdl_role_assignments table that holds the equivalent information.  For more information, see [[Development:Roles|the roles development documentation]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Enrolment]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Enrolment_FAQ&amp;diff=40191</id>
		<title>Enrolment FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Enrolment_FAQ&amp;diff=40191"/>
		<updated>2008-07-22T00:53:30Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* Where in the database is the relationship between user and course? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&lt;br /&gt;
==How do I prevent users from enrolling themselves on courses?==&lt;br /&gt;
&lt;br /&gt;
There are several methods to prevent or restrict [[Internal enrolment]] by a student. &lt;br /&gt;
*Set an [[Enrolment key|enrolment key]] in the course settings, so whilst the student can automatically enrol, they will need the key to complete the process. &lt;br /&gt;
*Set &#039;&#039;Course enrollable&#039;&#039; to &#039;&#039;No&#039;&#039; in the course settings. This stops the internal enrolment (student initiated enrolment) process.&lt;br /&gt;
&lt;br /&gt;
Note that neither method will prevent [[Enrolment#Manual enrolment|manual enrolments]] or [[Enrolment plugins]] from working.&lt;br /&gt;
&lt;br /&gt;
== Why are users being unenrolled for no apparent reason? ==&lt;br /&gt;
&lt;br /&gt;
Please check the following:&lt;br /&gt;
*The &#039;&#039;longtimenosee&#039;&#039; variable in &#039;&#039;Site Administration &amp;gt; Server &amp;gt; Cleanup&#039;&#039; (or Administration &amp;gt; Configuration &amp;gt; Variables in Moodle 1.6) which specifies the time limit for which, if students haven&#039;t logged in, they are unenrolled from courses.&lt;br /&gt;
*The &#039;&#039;Enrolment duration&#039;&#039; in the [[course/edit|Course settings]] which unenrols students after the specified time has elapsed.&lt;br /&gt;
&lt;br /&gt;
(See [[Unenrolment]] for a full list of what controls unenrolment.)&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
If the default role for all users in &#039;&#039;Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to student rather than authenticated user (the default setting), this will result in all students being enrolled in all courses.&lt;br /&gt;
&lt;br /&gt;
Another possibility is that users are assigned the system role of student. Check &#039;&#039;Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039; and unassign users as necessary, then reassign them the role of student in the course context.&lt;br /&gt;
&lt;br /&gt;
==Why can&#039;t I select &amp;quot;External Database&amp;quot; from the enrolment plugins drop-down menu in the course settings?==&lt;br /&gt;
&lt;br /&gt;
Only &#039;&#039;interactive&#039;&#039; enrolment methods may be chosen in the course settings. Non-interactive enrolment plugins are set for the entire site in &#039;&#039;Site Administration&#039;&#039; &amp;gt; &#039;&#039;Enrolment&#039;&#039;. Please refer to the interactive enrolment section of [[Enrolment plugins]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable students to unenrol themselves from courses?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Click the edit icon opposite the student role.&lt;br /&gt;
#Change the [[Capabilities/moodle/role:unassignself|moodle/role:unassignself]] capability from not set to allow.&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
(See [[Unenrolment]] for instructions on how to enable students to unenrol themselves from a particular course.)&lt;br /&gt;
&lt;br /&gt;
==How do I prevent teachers from unenrolling themselves from their course by mistake?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Click the edit icon opposite the teacher role.&lt;br /&gt;
#Change the [[Capabilities/moodle/role:unassignself|moodle/role:unassignself]] capability from allow to not set.&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
==How do I change the spelling of &amp;quot;enrol&amp;quot; to &amp;quot;enroll&amp;quot;?==&lt;br /&gt;
&lt;br /&gt;
Simply install the American English language pack (en_us) then choose it as the default language for the site. Or [[Language editing|edit your language]] settings.&lt;br /&gt;
&lt;br /&gt;
==Is there a way for lecturers to be notified when students enrol in a course?==&lt;br /&gt;
&lt;br /&gt;
No notifications will be sent when students are allowed to enrol by the [[Internal enrolment]] process.  It can be done by changing the open source code, but not by through the interface. Other enrolment methods (for example [[Flat file]]) can allow emails when enrolment is complete but these are not student initiated.&lt;br /&gt;
&lt;br /&gt;
==When a student enrols using an enrolment key, they get a welcome e-mail message.  Can a lecturer customise this at the course level?==&lt;br /&gt;
&lt;br /&gt;
Entering text for the message is described [[Email_processing#Email_confirmation_or_registration_words.2C_and_how_to_edit_them| Documentation here]].  But at the course level, not possible without a hack.&lt;br /&gt;
&lt;br /&gt;
==Where in the database is the relationship between user and course?==&lt;br /&gt;
&lt;br /&gt;
Prior to Moodle 1.7, enrollments were represented by two simple tables:  mdl_user_students and mdl_user_teachers.  Under the new Roles and Capabilities System introduced in Moodle 1.7, the concept of enrollment has been generalized.  The word &amp;quot;Enroll&amp;quot; should literally be read as &amp;quot;Assign a role to.&amp;quot;  To accomodate this flexibility, the database model has changed.  There is now a mdl_role_assignments table that holds the equivalent information.  For more information, see [[Development:Roles|the roles development documentation]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Enrolment]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Enrolment_FAQ&amp;diff=40190</id>
		<title>Enrolment FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Enrolment_FAQ&amp;diff=40190"/>
		<updated>2008-07-22T00:50:27Z</updated>

		<summary type="html">&lt;p&gt;Jisner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{FAQ}}&lt;br /&gt;
==How do I prevent users from enrolling themselves on courses?==&lt;br /&gt;
&lt;br /&gt;
There are several methods to prevent or restrict [[Internal enrolment]] by a student. &lt;br /&gt;
*Set an [[Enrolment key|enrolment key]] in the course settings, so whilst the student can automatically enrol, they will need the key to complete the process. &lt;br /&gt;
*Set &#039;&#039;Course enrollable&#039;&#039; to &#039;&#039;No&#039;&#039; in the course settings. This stops the internal enrolment (student initiated enrolment) process.&lt;br /&gt;
&lt;br /&gt;
Note that neither method will prevent [[Enrolment#Manual enrolment|manual enrolments]] or [[Enrolment plugins]] from working.&lt;br /&gt;
&lt;br /&gt;
== Why are users being unenrolled for no apparent reason? ==&lt;br /&gt;
&lt;br /&gt;
Please check the following:&lt;br /&gt;
*The &#039;&#039;longtimenosee&#039;&#039; variable in &#039;&#039;Site Administration &amp;gt; Server &amp;gt; Cleanup&#039;&#039; (or Administration &amp;gt; Configuration &amp;gt; Variables in Moodle 1.6) which specifies the time limit for which, if students haven&#039;t logged in, they are unenrolled from courses.&lt;br /&gt;
*The &#039;&#039;Enrolment duration&#039;&#039; in the [[course/edit|Course settings]] which unenrols students after the specified time has elapsed.&lt;br /&gt;
&lt;br /&gt;
(See [[Unenrolment]] for a full list of what controls unenrolment.)&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
If the default role for all users in &#039;&#039;Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to student rather than authenticated user (the default setting), this will result in all students being enrolled in all courses.&lt;br /&gt;
&lt;br /&gt;
Another possibility is that users are assigned the system role of student. Check &#039;&#039;Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039; and unassign users as necessary, then reassign them the role of student in the course context.&lt;br /&gt;
&lt;br /&gt;
==Why can&#039;t I select &amp;quot;External Database&amp;quot; from the enrolment plugins drop-down menu in the course settings?==&lt;br /&gt;
&lt;br /&gt;
Only &#039;&#039;interactive&#039;&#039; enrolment methods may be chosen in the course settings. Non-interactive enrolment plugins are set for the entire site in &#039;&#039;Site Administration&#039;&#039; &amp;gt; &#039;&#039;Enrolment&#039;&#039;. Please refer to the interactive enrolment section of [[Enrolment plugins]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable students to unenrol themselves from courses?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Click the edit icon opposite the student role.&lt;br /&gt;
#Change the [[Capabilities/moodle/role:unassignself|moodle/role:unassignself]] capability from not set to allow.&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
(See [[Unenrolment]] for instructions on how to enable students to unenrol themselves from a particular course.)&lt;br /&gt;
&lt;br /&gt;
==How do I prevent teachers from unenrolling themselves from their course by mistake?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Click the edit icon opposite the teacher role.&lt;br /&gt;
#Change the [[Capabilities/moodle/role:unassignself|moodle/role:unassignself]] capability from allow to not set.&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
==How do I change the spelling of &amp;quot;enrol&amp;quot; to &amp;quot;enroll&amp;quot;?==&lt;br /&gt;
&lt;br /&gt;
Simply install the American English language pack (en_us) then choose it as the default language for the site. Or [[Language editing|edit your language]] settings.&lt;br /&gt;
&lt;br /&gt;
==Is there a way for lecturers to be notified when students enrol in a course?==&lt;br /&gt;
&lt;br /&gt;
No notifications will be sent when students are allowed to enrol by the [[Internal enrolment]] process.  It can be done by changing the open source code, but not by through the interface. Other enrolment methods (for example [[Flat file]]) can allow emails when enrolment is complete but these are not student initiated.&lt;br /&gt;
&lt;br /&gt;
==When a student enrols using an enrolment key, they get a welcome e-mail message.  Can a lecturer customise this at the course level?==&lt;br /&gt;
&lt;br /&gt;
Entering text for the message is described [[Email_processing#Email_confirmation_or_registration_words.2C_and_how_to_edit_them| Documentation here]].  But at the course level, not possible without a hack.&lt;br /&gt;
&lt;br /&gt;
==Where in the database is the relationship between user and course?==&lt;br /&gt;
&lt;br /&gt;
Prior to Moodle 1.7, enrollments were represented by two simple tables:  mdl_user_students and mdl_user_teachers.  Under the new Roles and Capabilities System introduced in Moodle 1.7, the concept of enrollment has been generalized.  The word &amp;quot;Enroll&amp;quot; should litterally be read as &amp;quot;Assign a role to.&amp;quot;  The data base model has become considerably more complicated.  There is now a mdl_role_assignments table that holds the equivalent information.  For more information, see [[Development:Roles|the roles development documentation]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Enrolment]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40188</id>
		<title>Roles FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40188"/>
		<updated>2008-07-21T20:07:54Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* Why are all my teacher accounts automatically added as &amp;quot;Teachers&amp;quot; to all my courses? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
==What is the definition of a...==&lt;br /&gt;
&lt;br /&gt;
;Role&lt;br /&gt;
:An identifier of the user&#039;s status in some context, for example Teacher, Student and Forum moderator&lt;br /&gt;
;Capability&lt;br /&gt;
:A description of a particular Moodle feature, for example [[Capabilities/moodle/blog:create|moodle/blog:create]]&lt;br /&gt;
;Permission&lt;br /&gt;
:A setting for a capability - inherit, allow, prevent or prohibit&lt;br /&gt;
;Context&lt;br /&gt;
:A &amp;quot;space&amp;quot; in Moodle, such as courses, activity modules or blocks&lt;br /&gt;
&lt;br /&gt;
==Why isn&#039;t my role change taking effect?==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.7.x and 1.8.x, role assignments and overrides do not take effect immediately.  They are delayed until the next time the user logs in.  Starting with Moodle 1.9, explicit role assignments and overrides take effect immediately. However role assignments resulting from changes to certain user policies (for example, changing the default front page role) may be delayed until the next login.&lt;br /&gt;
&lt;br /&gt;
If you are testing a new role, [[Manage_roles#Testing_a_new_role | here are some suggestions]].&lt;br /&gt;
&lt;br /&gt;
Also, please check the context in which the role is assigned. Certain capabilities e.g. [[Capabilities/moodle/user:update|moodle/user:update]] may only be applied in the system context, so assigning a role in the course context will result in the role change not taking effect.&lt;br /&gt;
&lt;br /&gt;
==Why are all my teacher accounts automatically added as &amp;quot;Teachers&amp;quot; in all my courses?==&lt;br /&gt;
&lt;br /&gt;
If a user is assigned a role in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles) or in a Course category context, then the user will have this role in ALL courses within the context. For example, a user who is assigned the Teacher role in the System context will appear as a Teacher in all courses on the site, including the Front page course.&lt;br /&gt;
&lt;br /&gt;
Except in very special cases, teachers and students should be assigned their respective roles in a Course context.  When these roles are assigned in a System context, it is almost always an error on the part of the administrator.&lt;br /&gt;
&lt;br /&gt;
If you have accidentally assigned a System role, go to &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039; unassign users using the right-facing arrow button.  Then re-assign the roles in the appropriate Course context.&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
*Users are assigned the role of student in the site/system context rather than the course context (see FAQ above)&lt;br /&gt;
Or&lt;br /&gt;
*The default role for all users in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to Student rather than Authenticated user (Moodle 1.8 onwards).&lt;br /&gt;
&lt;br /&gt;
==Why are there differences in the users listed as course participants and users assigned roles in a course?==&lt;br /&gt;
&lt;br /&gt;
Users assigned roles in a higher context, for example users assigned the role of teacher in a course category context, may appear as course participants. The discussion [http://moodle.org/mod/forum/discuss.php?d=59900 Discrepancies between Assign Roles lists and Participants list] contains a longer explanation. &lt;br /&gt;
&lt;br /&gt;
==How can I prevent administrators being listed as course participants?==&lt;br /&gt;
&lt;br /&gt;
Ensure that administrators are not assigned another role in addition to their admin role.&lt;br /&gt;
&lt;br /&gt;
==Why are hidden assignments still visible?==&lt;br /&gt;
&lt;br /&gt;
Hidden assignments are not hidden from admins or teachers i.e. users with the [[Capabilities/moodle/role:viewhiddenassigns|viewhiddenassigns capability]].&lt;br /&gt;
&lt;br /&gt;
==What is the difference between Prevent and Not set?==&lt;br /&gt;
&lt;br /&gt;
If a role has capability &#039;&#039;X = Not set&#039;&#039;, then the role is saying &amp;quot;I don&#039;t care about X.&amp;quot;  If a role has &#039;&#039;X = Prevent,&#039;&#039; then the role is saying &amp;quot;I don&#039;t want you be able to do X.&amp;quot;  Now you typically have multiple roles in a given context, and those roles may have different opinions about &#039;&#039;X&#039;&#039;. If ALL of your roles have &#039;&#039;X = Not set&#039;&#039; then you will be effectively prevented from doing &#039;&#039;X&#039;&#039; because you need positive permission to do something.  It&#039;s just like an election.  If you are a candidate but no one votes, you don&#039;t win the election.  If all of your roles except for one has &#039;&#039;X = Not set&#039;&#039; and the remaining role has &#039;&#039;X = Allow&#039;&#039;, then you will be allowed to do X.  Again, it&#039;s like an election where only one person votes, and they vote for you!  For more complicated cases (e.g., roles assigned and overridden in different contexts) you need to understand [[How permissions are calculated]], but the principle is the same: By not voting, a role can allow other roles to determine the outcome of the election.  Roles with lots of permissions Not set tend to mix well with other roles. &lt;br /&gt;
&lt;br /&gt;
==What is my role here?==&lt;br /&gt;
&lt;br /&gt;
This is a frequently asked question, but an improper one.  The correct question is &amp;quot;What are my &#039;&#039;permissions&#039;&#039; here?&amp;quot;  In any given context, you often have two or more roles.  In addition, one or more role overrides may be in effect.  Your permissions in a given context are a result of &amp;quot;adding&amp;quot; the individual permissions from these roles and overrides according to certain rules.  As Tim Hunt writes in [http://moodle.org/mod/forum/discuss.php?d=90140 this discussion], the rules &amp;quot;normally do what you expect.&amp;quot;  However when permissions conflict, the results can be surprising, and it pays to understand [[How permissions are calculated]].&lt;br /&gt;
&lt;br /&gt;
==How do I debug a roles-related problem?==&lt;br /&gt;
&lt;br /&gt;
If you&#039;re having a problem that you suspect is related to roles, consider using [[The rolesdebug.php roles debugging script | the rolesdebug.php roles debugging script]].  You can download it from the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=1204 Modules and plugins database].  The script gives you a spatial view of your role assignments and overrides in a given context, and analyzes your permissions there.  To interpret the output requires a basic understanding of roles and capabilities.  If you are a complete roles novice, run the script and post the output to the [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities Forum].&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from changing their own password?==&lt;br /&gt;
&lt;br /&gt;
To prevent a user from changing their own password, you must make sure they do not have moodle/user:changeownpassword (&amp;quot;Change own password&amp;quot;) = Allow in the System context. The Authenticated user role (which is assigned to users in the System context) has moodle/user:changeownpassword = Allow by default, so you have two choices: &lt;br /&gt;
# edit Authenticated user, setting moodle/user:changeownpassword = Not set &lt;br /&gt;
# create a new role CannotChangeOwnPassword with moodle/user:changeownpassword = Prevent and all other permissions Not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles). &lt;br /&gt;
&lt;br /&gt;
Choice (1) will prevent &#039;&#039;all&#039;&#039; users from changing their passwords (except for the administrator, who can do anything).  To selectively allow selected users (say teachers) to change their passwords, you could create a new role CanChangeOwnPassword with moodle/user:changeownpassword = Allow and all other permissions not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles).&lt;br /&gt;
&lt;br /&gt;
Choice (2) allows you to be selective, but if you have a lot of users that you want to prevent (say, all students), you will have to make a lot of role assignments in the System context.  There is currently no convenient way to do this, so you might consider choice (1).&lt;br /&gt;
&lt;br /&gt;
Note that you MUST deal with this permission in the System context.&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from editing their own profile?==&lt;br /&gt;
&lt;br /&gt;
See [[Roles_FAQ#How can I prevent a user from changing their own password? | How can I prevent a user from changing their own password?]]  The answer to this question is the same if you substitute &#039;&#039;edit their own profile&#039;&#039; for &#039;&#039;change their own password&#039;&#039; and &#039;&#039;moodle/user:editownprofile&#039;&#039; for &#039;&#039;moodle/user:changeownpassword.&#039;&#039; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
==Are there any differences in Roles in Moodle 1.7 and 1.8?==&lt;br /&gt;
&lt;br /&gt;
In addition to many Roles fixes and refinements (see the list of [http://tracker.moodle.org/secure/IssueNavigator.jspa?mode=hide&amp;amp;requestId=10221 Roles improvements] in the Tracker), in Moodle 1.8 the &#039;&#039;system&#039;&#039; context is separated from the &#039;&#039;front page&#039;&#039; context. Roles may be assigned in the front page context via &#039;&#039;Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Duplicate role&amp;quot; button has been added in Moodle 1.8, which makes creating new roles based on predefined roles much quicker.&lt;br /&gt;
&lt;br /&gt;
==How do I change the name for &amp;quot;teacher&amp;quot; in the course description?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
* Edit the role of Teacher via &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; and rename it. The new name will apply site-wide.&lt;br /&gt;
Or&lt;br /&gt;
* Create a duplicate teacher role with an alternative name and assign users the duplicate teacher role as appropriate in the course context. In &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Course manager&#039;&#039; select the alternative name for teacher that you wish to be displayed in the course description.&lt;br /&gt;
Or&lt;br /&gt;
* One more way to do it in 1.8 is to create new &amp;quot;dummy&amp;quot; roles (no capabilities) with those names and assign them to teachers along with the real roles. In the course manager settings you can choose which roles display on the front page under each course. (The feature request [http://tracker.moodle.org/browse/MDL-9182 Ability to assign or display custom title for role of person in course] contains this further method.)&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}From Moodle 1.9 onwards, names for different roles in a course may be changed in the [[Course settings|course settings]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to set role overrides?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Edit the teacher role and change the capability [[Capabilities/moodle/role:override|moodle/role:override]] to allow.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
#Click the tab &amp;quot;Allow role overrides&amp;quot; (in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;).&lt;br /&gt;
#Check the appropriate box to allow a teacher to override the student role.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to assign other teachers in a course?==&lt;br /&gt;
&lt;br /&gt;
This is disabled by default but it can be switched on by modifying the teacher&#039;s role. In &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; select the &amp;quot;Allow role assignments&amp;quot; tab and tick the checkbox where Teacher and Teacher intersect.&lt;br /&gt;
&lt;br /&gt;
==Why doesn&#039;t &amp;quot;Switch role to..&amp;quot; within a course seem to work properly for a course creator?==&lt;br /&gt;
&lt;br /&gt;
This feature is intended for teachers so that they can see how their course appears for students. It doesn&#039;t work reliably outside the course.&lt;br /&gt;
&lt;br /&gt;
Further information about this feature can be found in [[Switch roles]] and the paragraph on testing a new role in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
==Are there any example roles?==&lt;br /&gt;
&lt;br /&gt;
Yes, as follows:&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role|Forum moderator]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Calendar editor role|Calendar editor]] - for providing a user with permission to add site events to the calendar&lt;br /&gt;
*[[Blogger role|Blogger]] - for limiting blogging to specific users only&lt;br /&gt;
*[[Quiz user with unlimited time role|Quiz user with unlimited time]] - for allowing a user unlimited time to attempt a quiz which has a time limit set&lt;br /&gt;
*[[Question creator role|Question creator]] - for enabling students to create questions for use in quizzes&lt;br /&gt;
&lt;br /&gt;
==Logged-in users can&#039;t read the site news. What can I do?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override permissions&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Scroll down to &#039;&#039;&#039;Forum&#039;&#039;&#039;&lt;br /&gt;
#Change the capability [[Capabilities/mod/forum:viewdiscussion|mod/forum:viewdiscussion]] to &#039;&#039;allow&#039;&#039;&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I enable logged-in users to participate in front page activities?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Change capabilities to &#039;&#039;allow&#039;&#039; for all required activities e.g. record a choice, reply to posts&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Note that for this to work, you need to make the default role for all users &amp;quot;authenticated user&amp;quot;. This is the default for new versions of Moodle. In older versions, the default setting is guest, so if you have recently upgraded, you may have to change this setting. You can change the setting via &#039;&#039;Site Administration &amp;gt; Permissions &amp;gt; User Policies&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Click on Student&lt;br /&gt;
#Select all users in the potential users list, and use the left-facing arrow button to add them to the existing users list&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I copy a custom role from one Moodle site to another==&lt;br /&gt;
&lt;br /&gt;
There is no import and export facility for roles, but it can be achieved nearly as easily using backup and restore.&lt;br /&gt;
&lt;br /&gt;
# Create an empty course with all the default settings&lt;br /&gt;
# Assign anybody to your custom role (or roles) within the course&lt;br /&gt;
# Backup the course (all defaults are fine)&lt;br /&gt;
# Download the backup file&lt;br /&gt;
# Upload the backup file to the site files of the target Moodle&lt;br /&gt;
# Restore the course (all defaults are fine)&lt;br /&gt;
# Delete the course.&lt;br /&gt;
&lt;br /&gt;
You will find that the custom roles have been recreated in the target site.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities forum]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[de:Rollen FAQ]]&lt;br /&gt;
[[es:FAQ_roles]]&lt;br /&gt;
[[fr:FAQ des rôles]]&lt;br /&gt;
[[ja:ロールFAQ]]&lt;br /&gt;
[[ru:FAQ по ролям]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40187</id>
		<title>Roles FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40187"/>
		<updated>2008-07-21T20:06:01Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* Why are participants being added automatically when a new course is created? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
==What is the definition of a...==&lt;br /&gt;
&lt;br /&gt;
;Role&lt;br /&gt;
:An identifier of the user&#039;s status in some context, for example Teacher, Student and Forum moderator&lt;br /&gt;
;Capability&lt;br /&gt;
:A description of a particular Moodle feature, for example [[Capabilities/moodle/blog:create|moodle/blog:create]]&lt;br /&gt;
;Permission&lt;br /&gt;
:A setting for a capability - inherit, allow, prevent or prohibit&lt;br /&gt;
;Context&lt;br /&gt;
:A &amp;quot;space&amp;quot; in Moodle, such as courses, activity modules or blocks&lt;br /&gt;
&lt;br /&gt;
==Why isn&#039;t my role change taking effect?==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.7.x and 1.8.x, role assignments and overrides do not take effect immediately.  They are delayed until the next time the user logs in.  Starting with Moodle 1.9, explicit role assignments and overrides take effect immediately. However role assignments resulting from changes to certain user policies (for example, changing the default front page role) may be delayed until the next login.&lt;br /&gt;
&lt;br /&gt;
If you are testing a new role, [[Manage_roles#Testing_a_new_role | here are some suggestions]].&lt;br /&gt;
&lt;br /&gt;
Also, please check the context in which the role is assigned. Certain capabilities e.g. [[Capabilities/moodle/user:update|moodle/user:update]] may only be applied in the system context, so assigning a role in the course context will result in the role change not taking effect.&lt;br /&gt;
&lt;br /&gt;
==Why are all my teacher accounts automatically added as &amp;quot;Teachers&amp;quot; to all my courses?==&lt;br /&gt;
&lt;br /&gt;
If a user is assigned a role in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles) or in a Course category context, then the user will have this role in ALL courses within the context. For example, a user who is assigned the Teacher role in the System context will appear as a Teacher in all courses on the site, including the Front page course.&lt;br /&gt;
&lt;br /&gt;
Except in very special cases, teachers and students should be assigned their respective roles in a Course context.  When these roles are assigned in a System context, it is almost always an error on the part of the administrator.&lt;br /&gt;
&lt;br /&gt;
If you have accidentally assigned a System role, go to &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039; unassign users using the right-facing arrow button.  Then re-assign the roles in the appropriate Course context.&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
*Users are assigned the role of student in the site/system context rather than the course context (see FAQ above)&lt;br /&gt;
Or&lt;br /&gt;
*The default role for all users in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to Student rather than Authenticated user (Moodle 1.8 onwards).&lt;br /&gt;
&lt;br /&gt;
==Why are there differences in the users listed as course participants and users assigned roles in a course?==&lt;br /&gt;
&lt;br /&gt;
Users assigned roles in a higher context, for example users assigned the role of teacher in a course category context, may appear as course participants. The discussion [http://moodle.org/mod/forum/discuss.php?d=59900 Discrepancies between Assign Roles lists and Participants list] contains a longer explanation. &lt;br /&gt;
&lt;br /&gt;
==How can I prevent administrators being listed as course participants?==&lt;br /&gt;
&lt;br /&gt;
Ensure that administrators are not assigned another role in addition to their admin role.&lt;br /&gt;
&lt;br /&gt;
==Why are hidden assignments still visible?==&lt;br /&gt;
&lt;br /&gt;
Hidden assignments are not hidden from admins or teachers i.e. users with the [[Capabilities/moodle/role:viewhiddenassigns|viewhiddenassigns capability]].&lt;br /&gt;
&lt;br /&gt;
==What is the difference between Prevent and Not set?==&lt;br /&gt;
&lt;br /&gt;
If a role has capability &#039;&#039;X = Not set&#039;&#039;, then the role is saying &amp;quot;I don&#039;t care about X.&amp;quot;  If a role has &#039;&#039;X = Prevent,&#039;&#039; then the role is saying &amp;quot;I don&#039;t want you be able to do X.&amp;quot;  Now you typically have multiple roles in a given context, and those roles may have different opinions about &#039;&#039;X&#039;&#039;. If ALL of your roles have &#039;&#039;X = Not set&#039;&#039; then you will be effectively prevented from doing &#039;&#039;X&#039;&#039; because you need positive permission to do something.  It&#039;s just like an election.  If you are a candidate but no one votes, you don&#039;t win the election.  If all of your roles except for one has &#039;&#039;X = Not set&#039;&#039; and the remaining role has &#039;&#039;X = Allow&#039;&#039;, then you will be allowed to do X.  Again, it&#039;s like an election where only one person votes, and they vote for you!  For more complicated cases (e.g., roles assigned and overridden in different contexts) you need to understand [[How permissions are calculated]], but the principle is the same: By not voting, a role can allow other roles to determine the outcome of the election.  Roles with lots of permissions Not set tend to mix well with other roles. &lt;br /&gt;
&lt;br /&gt;
==What is my role here?==&lt;br /&gt;
&lt;br /&gt;
This is a frequently asked question, but an improper one.  The correct question is &amp;quot;What are my &#039;&#039;permissions&#039;&#039; here?&amp;quot;  In any given context, you often have two or more roles.  In addition, one or more role overrides may be in effect.  Your permissions in a given context are a result of &amp;quot;adding&amp;quot; the individual permissions from these roles and overrides according to certain rules.  As Tim Hunt writes in [http://moodle.org/mod/forum/discuss.php?d=90140 this discussion], the rules &amp;quot;normally do what you expect.&amp;quot;  However when permissions conflict, the results can be surprising, and it pays to understand [[How permissions are calculated]].&lt;br /&gt;
&lt;br /&gt;
==How do I debug a roles-related problem?==&lt;br /&gt;
&lt;br /&gt;
If you&#039;re having a problem that you suspect is related to roles, consider using [[The rolesdebug.php roles debugging script | the rolesdebug.php roles debugging script]].  You can download it from the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=1204 Modules and plugins database].  The script gives you a spatial view of your role assignments and overrides in a given context, and analyzes your permissions there.  To interpret the output requires a basic understanding of roles and capabilities.  If you are a complete roles novice, run the script and post the output to the [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities Forum].&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from changing their own password?==&lt;br /&gt;
&lt;br /&gt;
To prevent a user from changing their own password, you must make sure they do not have moodle/user:changeownpassword (&amp;quot;Change own password&amp;quot;) = Allow in the System context. The Authenticated user role (which is assigned to users in the System context) has moodle/user:changeownpassword = Allow by default, so you have two choices: &lt;br /&gt;
# edit Authenticated user, setting moodle/user:changeownpassword = Not set &lt;br /&gt;
# create a new role CannotChangeOwnPassword with moodle/user:changeownpassword = Prevent and all other permissions Not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles). &lt;br /&gt;
&lt;br /&gt;
Choice (1) will prevent &#039;&#039;all&#039;&#039; users from changing their passwords (except for the administrator, who can do anything).  To selectively allow selected users (say teachers) to change their passwords, you could create a new role CanChangeOwnPassword with moodle/user:changeownpassword = Allow and all other permissions not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles).&lt;br /&gt;
&lt;br /&gt;
Choice (2) allows you to be selective, but if you have a lot of users that you want to prevent (say, all students), you will have to make a lot of role assignments in the System context.  There is currently no convenient way to do this, so you might consider choice (1).&lt;br /&gt;
&lt;br /&gt;
Note that you MUST deal with this permission in the System context.&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from editing their own profile?==&lt;br /&gt;
&lt;br /&gt;
See [[Roles_FAQ#How can I prevent a user from changing their own password? | How can I prevent a user from changing their own password?]]  The answer to this question is the same if you substitute &#039;&#039;edit their own profile&#039;&#039; for &#039;&#039;change their own password&#039;&#039; and &#039;&#039;moodle/user:editownprofile&#039;&#039; for &#039;&#039;moodle/user:changeownpassword.&#039;&#039; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
==Are there any differences in Roles in Moodle 1.7 and 1.8?==&lt;br /&gt;
&lt;br /&gt;
In addition to many Roles fixes and refinements (see the list of [http://tracker.moodle.org/secure/IssueNavigator.jspa?mode=hide&amp;amp;requestId=10221 Roles improvements] in the Tracker), in Moodle 1.8 the &#039;&#039;system&#039;&#039; context is separated from the &#039;&#039;front page&#039;&#039; context. Roles may be assigned in the front page context via &#039;&#039;Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Duplicate role&amp;quot; button has been added in Moodle 1.8, which makes creating new roles based on predefined roles much quicker.&lt;br /&gt;
&lt;br /&gt;
==How do I change the name for &amp;quot;teacher&amp;quot; in the course description?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
* Edit the role of Teacher via &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; and rename it. The new name will apply site-wide.&lt;br /&gt;
Or&lt;br /&gt;
* Create a duplicate teacher role with an alternative name and assign users the duplicate teacher role as appropriate in the course context. In &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Course manager&#039;&#039; select the alternative name for teacher that you wish to be displayed in the course description.&lt;br /&gt;
Or&lt;br /&gt;
* One more way to do it in 1.8 is to create new &amp;quot;dummy&amp;quot; roles (no capabilities) with those names and assign them to teachers along with the real roles. In the course manager settings you can choose which roles display on the front page under each course. (The feature request [http://tracker.moodle.org/browse/MDL-9182 Ability to assign or display custom title for role of person in course] contains this further method.)&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}From Moodle 1.9 onwards, names for different roles in a course may be changed in the [[Course settings|course settings]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to set role overrides?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Edit the teacher role and change the capability [[Capabilities/moodle/role:override|moodle/role:override]] to allow.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
#Click the tab &amp;quot;Allow role overrides&amp;quot; (in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;).&lt;br /&gt;
#Check the appropriate box to allow a teacher to override the student role.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to assign other teachers in a course?==&lt;br /&gt;
&lt;br /&gt;
This is disabled by default but it can be switched on by modifying the teacher&#039;s role. In &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; select the &amp;quot;Allow role assignments&amp;quot; tab and tick the checkbox where Teacher and Teacher intersect.&lt;br /&gt;
&lt;br /&gt;
==Why doesn&#039;t &amp;quot;Switch role to..&amp;quot; within a course seem to work properly for a course creator?==&lt;br /&gt;
&lt;br /&gt;
This feature is intended for teachers so that they can see how their course appears for students. It doesn&#039;t work reliably outside the course.&lt;br /&gt;
&lt;br /&gt;
Further information about this feature can be found in [[Switch roles]] and the paragraph on testing a new role in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
==Are there any example roles?==&lt;br /&gt;
&lt;br /&gt;
Yes, as follows:&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role|Forum moderator]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Calendar editor role|Calendar editor]] - for providing a user with permission to add site events to the calendar&lt;br /&gt;
*[[Blogger role|Blogger]] - for limiting blogging to specific users only&lt;br /&gt;
*[[Quiz user with unlimited time role|Quiz user with unlimited time]] - for allowing a user unlimited time to attempt a quiz which has a time limit set&lt;br /&gt;
*[[Question creator role|Question creator]] - for enabling students to create questions for use in quizzes&lt;br /&gt;
&lt;br /&gt;
==Logged-in users can&#039;t read the site news. What can I do?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override permissions&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Scroll down to &#039;&#039;&#039;Forum&#039;&#039;&#039;&lt;br /&gt;
#Change the capability [[Capabilities/mod/forum:viewdiscussion|mod/forum:viewdiscussion]] to &#039;&#039;allow&#039;&#039;&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I enable logged-in users to participate in front page activities?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Change capabilities to &#039;&#039;allow&#039;&#039; for all required activities e.g. record a choice, reply to posts&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Note that for this to work, you need to make the default role for all users &amp;quot;authenticated user&amp;quot;. This is the default for new versions of Moodle. In older versions, the default setting is guest, so if you have recently upgraded, you may have to change this setting. You can change the setting via &#039;&#039;Site Administration &amp;gt; Permissions &amp;gt; User Policies&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Click on Student&lt;br /&gt;
#Select all users in the potential users list, and use the left-facing arrow button to add them to the existing users list&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I copy a custom role from one Moodle site to another==&lt;br /&gt;
&lt;br /&gt;
There is no import and export facility for roles, but it can be achieved nearly as easily using backup and restore.&lt;br /&gt;
&lt;br /&gt;
# Create an empty course with all the default settings&lt;br /&gt;
# Assign anybody to your custom role (or roles) within the course&lt;br /&gt;
# Backup the course (all defaults are fine)&lt;br /&gt;
# Download the backup file&lt;br /&gt;
# Upload the backup file to the site files of the target Moodle&lt;br /&gt;
# Restore the course (all defaults are fine)&lt;br /&gt;
# Delete the course.&lt;br /&gt;
&lt;br /&gt;
You will find that the custom roles have been recreated in the target site.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities forum]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[de:Rollen FAQ]]&lt;br /&gt;
[[es:FAQ_roles]]&lt;br /&gt;
[[fr:FAQ des rôles]]&lt;br /&gt;
[[ja:ロールFAQ]]&lt;br /&gt;
[[ru:FAQ по ролям]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40186</id>
		<title>Roles FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40186"/>
		<updated>2008-07-21T20:01:08Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* Why are participants being added automatically when a new course is created? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
==What is the definition of a...==&lt;br /&gt;
&lt;br /&gt;
;Role&lt;br /&gt;
:An identifier of the user&#039;s status in some context, for example Teacher, Student and Forum moderator&lt;br /&gt;
;Capability&lt;br /&gt;
:A description of a particular Moodle feature, for example [[Capabilities/moodle/blog:create|moodle/blog:create]]&lt;br /&gt;
;Permission&lt;br /&gt;
:A setting for a capability - inherit, allow, prevent or prohibit&lt;br /&gt;
;Context&lt;br /&gt;
:A &amp;quot;space&amp;quot; in Moodle, such as courses, activity modules or blocks&lt;br /&gt;
&lt;br /&gt;
==Why isn&#039;t my role change taking effect?==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.7.x and 1.8.x, role assignments and overrides do not take effect immediately.  They are delayed until the next time the user logs in.  Starting with Moodle 1.9, explicit role assignments and overrides take effect immediately. However role assignments resulting from changes to certain user policies (for example, changing the default front page role) may be delayed until the next login.&lt;br /&gt;
&lt;br /&gt;
If you are testing a new role, [[Manage_roles#Testing_a_new_role | here are some suggestions]].&lt;br /&gt;
&lt;br /&gt;
Also, please check the context in which the role is assigned. Certain capabilities e.g. [[Capabilities/moodle/user:update|moodle/user:update]] may only be applied in the system context, so assigning a role in the course context will result in the role change not taking effect.&lt;br /&gt;
&lt;br /&gt;
==Why are participants being added automatically when a new course is created?==&lt;br /&gt;
&lt;br /&gt;
If a user is assigned a role in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles) or in a Course category context, then the user will have this role in ALL courses within the context. For example, a user who is assigned the Teacher role in the System context will appear as a Teacher in all courses on the site, including the Front page course.&lt;br /&gt;
&lt;br /&gt;
Except in very special cases, teachers and students should be assigned their respective roles in a Course context.  When these roles are assigned in a System context, it is almost always an error on the part of the administrator.&lt;br /&gt;
&lt;br /&gt;
If you have accidentally assigned a System role, go to &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039; unassign users using the right-facing arrow button.  Then re-assign the roles in the appropriate Course context.&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
*Users are assigned the role of student in the site/system context rather than the course context (see FAQ above)&lt;br /&gt;
Or&lt;br /&gt;
*The default role for all users in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to Student rather than Authenticated user (Moodle 1.8 onwards).&lt;br /&gt;
&lt;br /&gt;
==Why are there differences in the users listed as course participants and users assigned roles in a course?==&lt;br /&gt;
&lt;br /&gt;
Users assigned roles in a higher context, for example users assigned the role of teacher in a course category context, may appear as course participants. The discussion [http://moodle.org/mod/forum/discuss.php?d=59900 Discrepancies between Assign Roles lists and Participants list] contains a longer explanation. &lt;br /&gt;
&lt;br /&gt;
==How can I prevent administrators being listed as course participants?==&lt;br /&gt;
&lt;br /&gt;
Ensure that administrators are not assigned another role in addition to their admin role.&lt;br /&gt;
&lt;br /&gt;
==Why are hidden assignments still visible?==&lt;br /&gt;
&lt;br /&gt;
Hidden assignments are not hidden from admins or teachers i.e. users with the [[Capabilities/moodle/role:viewhiddenassigns|viewhiddenassigns capability]].&lt;br /&gt;
&lt;br /&gt;
==What is the difference between Prevent and Not set?==&lt;br /&gt;
&lt;br /&gt;
If a role has capability &#039;&#039;X = Not set&#039;&#039;, then the role is saying &amp;quot;I don&#039;t care about X.&amp;quot;  If a role has &#039;&#039;X = Prevent,&#039;&#039; then the role is saying &amp;quot;I don&#039;t want you be able to do X.&amp;quot;  Now you typically have multiple roles in a given context, and those roles may have different opinions about &#039;&#039;X&#039;&#039;. If ALL of your roles have &#039;&#039;X = Not set&#039;&#039; then you will be effectively prevented from doing &#039;&#039;X&#039;&#039; because you need positive permission to do something.  It&#039;s just like an election.  If you are a candidate but no one votes, you don&#039;t win the election.  If all of your roles except for one has &#039;&#039;X = Not set&#039;&#039; and the remaining role has &#039;&#039;X = Allow&#039;&#039;, then you will be allowed to do X.  Again, it&#039;s like an election where only one person votes, and they vote for you!  For more complicated cases (e.g., roles assigned and overridden in different contexts) you need to understand [[How permissions are calculated]], but the principle is the same: By not voting, a role can allow other roles to determine the outcome of the election.  Roles with lots of permissions Not set tend to mix well with other roles. &lt;br /&gt;
&lt;br /&gt;
==What is my role here?==&lt;br /&gt;
&lt;br /&gt;
This is a frequently asked question, but an improper one.  The correct question is &amp;quot;What are my &#039;&#039;permissions&#039;&#039; here?&amp;quot;  In any given context, you often have two or more roles.  In addition, one or more role overrides may be in effect.  Your permissions in a given context are a result of &amp;quot;adding&amp;quot; the individual permissions from these roles and overrides according to certain rules.  As Tim Hunt writes in [http://moodle.org/mod/forum/discuss.php?d=90140 this discussion], the rules &amp;quot;normally do what you expect.&amp;quot;  However when permissions conflict, the results can be surprising, and it pays to understand [[How permissions are calculated]].&lt;br /&gt;
&lt;br /&gt;
==How do I debug a roles-related problem?==&lt;br /&gt;
&lt;br /&gt;
If you&#039;re having a problem that you suspect is related to roles, consider using [[The rolesdebug.php roles debugging script | the rolesdebug.php roles debugging script]].  You can download it from the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=1204 Modules and plugins database].  The script gives you a spatial view of your role assignments and overrides in a given context, and analyzes your permissions there.  To interpret the output requires a basic understanding of roles and capabilities.  If you are a complete roles novice, run the script and post the output to the [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities Forum].&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from changing their own password?==&lt;br /&gt;
&lt;br /&gt;
To prevent a user from changing their own password, you must make sure they do not have moodle/user:changeownpassword (&amp;quot;Change own password&amp;quot;) = Allow in the System context. The Authenticated user role (which is assigned to users in the System context) has moodle/user:changeownpassword = Allow by default, so you have two choices: &lt;br /&gt;
# edit Authenticated user, setting moodle/user:changeownpassword = Not set &lt;br /&gt;
# create a new role CannotChangeOwnPassword with moodle/user:changeownpassword = Prevent and all other permissions Not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles). &lt;br /&gt;
&lt;br /&gt;
Choice (1) will prevent &#039;&#039;all&#039;&#039; users from changing their passwords (except for the administrator, who can do anything).  To selectively allow selected users (say teachers) to change their passwords, you could create a new role CanChangeOwnPassword with moodle/user:changeownpassword = Allow and all other permissions not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles).&lt;br /&gt;
&lt;br /&gt;
Choice (2) allows you to be selective, but if you have a lot of users that you want to prevent (say, all students), you will have to make a lot of role assignments in the System context.  There is currently no convenient way to do this, so you might consider choice (1).&lt;br /&gt;
&lt;br /&gt;
Note that you MUST deal with this permission in the System context.&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from editing their own profile?==&lt;br /&gt;
&lt;br /&gt;
See [[Roles_FAQ#How can I prevent a user from changing their own password? | How can I prevent a user from changing their own password?]]  The answer to this question is the same if you substitute &#039;&#039;edit their own profile&#039;&#039; for &#039;&#039;change their own password&#039;&#039; and &#039;&#039;moodle/user:editownprofile&#039;&#039; for &#039;&#039;moodle/user:changeownpassword.&#039;&#039; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
==Are there any differences in Roles in Moodle 1.7 and 1.8?==&lt;br /&gt;
&lt;br /&gt;
In addition to many Roles fixes and refinements (see the list of [http://tracker.moodle.org/secure/IssueNavigator.jspa?mode=hide&amp;amp;requestId=10221 Roles improvements] in the Tracker), in Moodle 1.8 the &#039;&#039;system&#039;&#039; context is separated from the &#039;&#039;front page&#039;&#039; context. Roles may be assigned in the front page context via &#039;&#039;Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Duplicate role&amp;quot; button has been added in Moodle 1.8, which makes creating new roles based on predefined roles much quicker.&lt;br /&gt;
&lt;br /&gt;
==How do I change the name for &amp;quot;teacher&amp;quot; in the course description?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
* Edit the role of Teacher via &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; and rename it. The new name will apply site-wide.&lt;br /&gt;
Or&lt;br /&gt;
* Create a duplicate teacher role with an alternative name and assign users the duplicate teacher role as appropriate in the course context. In &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Course manager&#039;&#039; select the alternative name for teacher that you wish to be displayed in the course description.&lt;br /&gt;
Or&lt;br /&gt;
* One more way to do it in 1.8 is to create new &amp;quot;dummy&amp;quot; roles (no capabilities) with those names and assign them to teachers along with the real roles. In the course manager settings you can choose which roles display on the front page under each course. (The feature request [http://tracker.moodle.org/browse/MDL-9182 Ability to assign or display custom title for role of person in course] contains this further method.)&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}From Moodle 1.9 onwards, names for different roles in a course may be changed in the [[Course settings|course settings]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to set role overrides?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Edit the teacher role and change the capability [[Capabilities/moodle/role:override|moodle/role:override]] to allow.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
#Click the tab &amp;quot;Allow role overrides&amp;quot; (in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;).&lt;br /&gt;
#Check the appropriate box to allow a teacher to override the student role.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to assign other teachers in a course?==&lt;br /&gt;
&lt;br /&gt;
This is disabled by default but it can be switched on by modifying the teacher&#039;s role. In &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; select the &amp;quot;Allow role assignments&amp;quot; tab and tick the checkbox where Teacher and Teacher intersect.&lt;br /&gt;
&lt;br /&gt;
==Why doesn&#039;t &amp;quot;Switch role to..&amp;quot; within a course seem to work properly for a course creator?==&lt;br /&gt;
&lt;br /&gt;
This feature is intended for teachers so that they can see how their course appears for students. It doesn&#039;t work reliably outside the course.&lt;br /&gt;
&lt;br /&gt;
Further information about this feature can be found in [[Switch roles]] and the paragraph on testing a new role in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
==Are there any example roles?==&lt;br /&gt;
&lt;br /&gt;
Yes, as follows:&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role|Forum moderator]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Calendar editor role|Calendar editor]] - for providing a user with permission to add site events to the calendar&lt;br /&gt;
*[[Blogger role|Blogger]] - for limiting blogging to specific users only&lt;br /&gt;
*[[Quiz user with unlimited time role|Quiz user with unlimited time]] - for allowing a user unlimited time to attempt a quiz which has a time limit set&lt;br /&gt;
*[[Question creator role|Question creator]] - for enabling students to create questions for use in quizzes&lt;br /&gt;
&lt;br /&gt;
==Logged-in users can&#039;t read the site news. What can I do?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override permissions&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Scroll down to &#039;&#039;&#039;Forum&#039;&#039;&#039;&lt;br /&gt;
#Change the capability [[Capabilities/mod/forum:viewdiscussion|mod/forum:viewdiscussion]] to &#039;&#039;allow&#039;&#039;&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I enable logged-in users to participate in front page activities?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Change capabilities to &#039;&#039;allow&#039;&#039; for all required activities e.g. record a choice, reply to posts&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Note that for this to work, you need to make the default role for all users &amp;quot;authenticated user&amp;quot;. This is the default for new versions of Moodle. In older versions, the default setting is guest, so if you have recently upgraded, you may have to change this setting. You can change the setting via &#039;&#039;Site Administration &amp;gt; Permissions &amp;gt; User Policies&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Click on Student&lt;br /&gt;
#Select all users in the potential users list, and use the left-facing arrow button to add them to the existing users list&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I copy a custom role from one Moodle site to another==&lt;br /&gt;
&lt;br /&gt;
There is no import and export facility for roles, but it can be achieved nearly as easily using backup and restore.&lt;br /&gt;
&lt;br /&gt;
# Create an empty course with all the default settings&lt;br /&gt;
# Assign anybody to your custom role (or roles) within the course&lt;br /&gt;
# Backup the course (all defaults are fine)&lt;br /&gt;
# Download the backup file&lt;br /&gt;
# Upload the backup file to the site files of the target Moodle&lt;br /&gt;
# Restore the course (all defaults are fine)&lt;br /&gt;
# Delete the course.&lt;br /&gt;
&lt;br /&gt;
You will find that the custom roles have been recreated in the target site.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities forum]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[de:Rollen FAQ]]&lt;br /&gt;
[[es:FAQ_roles]]&lt;br /&gt;
[[fr:FAQ des rôles]]&lt;br /&gt;
[[ja:ロールFAQ]]&lt;br /&gt;
[[ru:FAQ по ролям]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40185</id>
		<title>Roles FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40185"/>
		<updated>2008-07-21T19:53:19Z</updated>

		<summary type="html">&lt;p&gt;Jisner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
==What is the definition of a...==&lt;br /&gt;
&lt;br /&gt;
;Role&lt;br /&gt;
:An identifier of the user&#039;s status in some context, for example Teacher, Student and Forum moderator&lt;br /&gt;
;Capability&lt;br /&gt;
:A description of a particular Moodle feature, for example [[Capabilities/moodle/blog:create|moodle/blog:create]]&lt;br /&gt;
;Permission&lt;br /&gt;
:A setting for a capability - inherit, allow, prevent or prohibit&lt;br /&gt;
;Context&lt;br /&gt;
:A &amp;quot;space&amp;quot; in Moodle, such as courses, activity modules or blocks&lt;br /&gt;
&lt;br /&gt;
==Why isn&#039;t my role change taking effect?==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.7.x and 1.8.x, role assignments and overrides do not take effect immediately.  They are delayed until the next time the user logs in.  Starting with Moodle 1.9, explicit role assignments and overrides take effect immediately. However role assignments resulting from changes to certain user policies (for example, changing the default front page role) may be delayed until the next login.&lt;br /&gt;
&lt;br /&gt;
If you are testing a new role, [[Manage_roles#Testing_a_new_role | here are some suggestions]].&lt;br /&gt;
&lt;br /&gt;
Also, please check the context in which the role is assigned. Certain capabilities e.g. [[Capabilities/moodle/user:update|moodle/user:update]] may only be applied in the system context, so assigning a role in the course context will result in the role change not taking effect.&lt;br /&gt;
&lt;br /&gt;
==Why are participants being added automatically when a new course is created?==&lt;br /&gt;
&lt;br /&gt;
If a user is assigned a system role or a role in the course category context then the user has this role in ALL courses in that context. Thus users who are students or teachers at the category level appear as course participants in all courses in that category.&lt;br /&gt;
&lt;br /&gt;
Please check &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039; and also the Assign roles link in course categories page and unassign users as necessary.&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
*Users are assigned the role of student in the site/system context rather than the course context (see FAQ above)&lt;br /&gt;
Or&lt;br /&gt;
*The default role for all users in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to Student rather than Authenticated user (Moodle 1.8 onwards).&lt;br /&gt;
&lt;br /&gt;
==Why are there differences in the users listed as course participants and users assigned roles in a course?==&lt;br /&gt;
&lt;br /&gt;
Users assigned roles in a higher context, for example users assigned the role of teacher in a course category context, may appear as course participants. The discussion [http://moodle.org/mod/forum/discuss.php?d=59900 Discrepancies between Assign Roles lists and Participants list] contains a longer explanation. &lt;br /&gt;
&lt;br /&gt;
==How can I prevent administrators being listed as course participants?==&lt;br /&gt;
&lt;br /&gt;
Ensure that administrators are not assigned another role in addition to their admin role.&lt;br /&gt;
&lt;br /&gt;
==Why are hidden assignments still visible?==&lt;br /&gt;
&lt;br /&gt;
Hidden assignments are not hidden from admins or teachers i.e. users with the [[Capabilities/moodle/role:viewhiddenassigns|viewhiddenassigns capability]].&lt;br /&gt;
&lt;br /&gt;
==What is the difference between Prevent and Not set?==&lt;br /&gt;
&lt;br /&gt;
If a role has capability &#039;&#039;X = Not set&#039;&#039;, then the role is saying &amp;quot;I don&#039;t care about X.&amp;quot;  If a role has &#039;&#039;X = Prevent,&#039;&#039; then the role is saying &amp;quot;I don&#039;t want you be able to do X.&amp;quot;  Now you typically have multiple roles in a given context, and those roles may have different opinions about &#039;&#039;X&#039;&#039;. If ALL of your roles have &#039;&#039;X = Not set&#039;&#039; then you will be effectively prevented from doing &#039;&#039;X&#039;&#039; because you need positive permission to do something.  It&#039;s just like an election.  If you are a candidate but no one votes, you don&#039;t win the election.  If all of your roles except for one has &#039;&#039;X = Not set&#039;&#039; and the remaining role has &#039;&#039;X = Allow&#039;&#039;, then you will be allowed to do X.  Again, it&#039;s like an election where only one person votes, and they vote for you!  For more complicated cases (e.g., roles assigned and overridden in different contexts) you need to understand [[How permissions are calculated]], but the principle is the same: By not voting, a role can allow other roles to determine the outcome of the election.  Roles with lots of permissions Not set tend to mix well with other roles. &lt;br /&gt;
&lt;br /&gt;
==What is my role here?==&lt;br /&gt;
&lt;br /&gt;
This is a frequently asked question, but an improper one.  The correct question is &amp;quot;What are my &#039;&#039;permissions&#039;&#039; here?&amp;quot;  In any given context, you often have two or more roles.  In addition, one or more role overrides may be in effect.  Your permissions in a given context are a result of &amp;quot;adding&amp;quot; the individual permissions from these roles and overrides according to certain rules.  As Tim Hunt writes in [http://moodle.org/mod/forum/discuss.php?d=90140 this discussion], the rules &amp;quot;normally do what you expect.&amp;quot;  However when permissions conflict, the results can be surprising, and it pays to understand [[How permissions are calculated]].&lt;br /&gt;
&lt;br /&gt;
==How do I debug a roles-related problem?==&lt;br /&gt;
&lt;br /&gt;
If you&#039;re having a problem that you suspect is related to roles, consider using [[The rolesdebug.php roles debugging script | the rolesdebug.php roles debugging script]].  You can download it from the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=1204 Modules and plugins database].  The script gives you a spatial view of your role assignments and overrides in a given context, and analyzes your permissions there.  To interpret the output requires a basic understanding of roles and capabilities.  If you are a complete roles novice, run the script and post the output to the [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities Forum].&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from changing their own password?==&lt;br /&gt;
&lt;br /&gt;
To prevent a user from changing their own password, you must make sure they do not have moodle/user:changeownpassword (&amp;quot;Change own password&amp;quot;) = Allow in the System context. The Authenticated user role (which is assigned to users in the System context) has moodle/user:changeownpassword = Allow by default, so you have two choices: &lt;br /&gt;
# edit Authenticated user, setting moodle/user:changeownpassword = Not set &lt;br /&gt;
# create a new role CannotChangeOwnPassword with moodle/user:changeownpassword = Prevent and all other permissions Not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles). &lt;br /&gt;
&lt;br /&gt;
Choice (1) will prevent &#039;&#039;all&#039;&#039; users from changing their passwords (except for the administrator, who can do anything).  To selectively allow selected users (say teachers) to change their passwords, you could create a new role CanChangeOwnPassword with moodle/user:changeownpassword = Allow and all other permissions not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles).&lt;br /&gt;
&lt;br /&gt;
Choice (2) allows you to be selective, but if you have a lot of users that you want to prevent (say, all students), you will have to make a lot of role assignments in the System context.  There is currently no convenient way to do this, so you might consider choice (1).&lt;br /&gt;
&lt;br /&gt;
Note that you MUST deal with this permission in the System context.&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from editing their own profile?==&lt;br /&gt;
&lt;br /&gt;
See [[Roles_FAQ#How can I prevent a user from changing their own password? | How can I prevent a user from changing their own password?]]  The answer to this question is the same if you substitute &#039;&#039;edit their own profile&#039;&#039; for &#039;&#039;change their own password&#039;&#039; and &#039;&#039;moodle/user:editownprofile&#039;&#039; for &#039;&#039;moodle/user:changeownpassword.&#039;&#039; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
==Are there any differences in Roles in Moodle 1.7 and 1.8?==&lt;br /&gt;
&lt;br /&gt;
In addition to many Roles fixes and refinements (see the list of [http://tracker.moodle.org/secure/IssueNavigator.jspa?mode=hide&amp;amp;requestId=10221 Roles improvements] in the Tracker), in Moodle 1.8 the &#039;&#039;system&#039;&#039; context is separated from the &#039;&#039;front page&#039;&#039; context. Roles may be assigned in the front page context via &#039;&#039;Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Duplicate role&amp;quot; button has been added in Moodle 1.8, which makes creating new roles based on predefined roles much quicker.&lt;br /&gt;
&lt;br /&gt;
==How do I change the name for &amp;quot;teacher&amp;quot; in the course description?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
* Edit the role of Teacher via &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; and rename it. The new name will apply site-wide.&lt;br /&gt;
Or&lt;br /&gt;
* Create a duplicate teacher role with an alternative name and assign users the duplicate teacher role as appropriate in the course context. In &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Course manager&#039;&#039; select the alternative name for teacher that you wish to be displayed in the course description.&lt;br /&gt;
Or&lt;br /&gt;
* One more way to do it in 1.8 is to create new &amp;quot;dummy&amp;quot; roles (no capabilities) with those names and assign them to teachers along with the real roles. In the course manager settings you can choose which roles display on the front page under each course. (The feature request [http://tracker.moodle.org/browse/MDL-9182 Ability to assign or display custom title for role of person in course] contains this further method.)&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}From Moodle 1.9 onwards, names for different roles in a course may be changed in the [[Course settings|course settings]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to set role overrides?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Edit the teacher role and change the capability [[Capabilities/moodle/role:override|moodle/role:override]] to allow.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
#Click the tab &amp;quot;Allow role overrides&amp;quot; (in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;).&lt;br /&gt;
#Check the appropriate box to allow a teacher to override the student role.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to assign other teachers in a course?==&lt;br /&gt;
&lt;br /&gt;
This is disabled by default but it can be switched on by modifying the teacher&#039;s role. In &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; select the &amp;quot;Allow role assignments&amp;quot; tab and tick the checkbox where Teacher and Teacher intersect.&lt;br /&gt;
&lt;br /&gt;
==Why doesn&#039;t &amp;quot;Switch role to..&amp;quot; within a course seem to work properly for a course creator?==&lt;br /&gt;
&lt;br /&gt;
This feature is intended for teachers so that they can see how their course appears for students. It doesn&#039;t work reliably outside the course.&lt;br /&gt;
&lt;br /&gt;
Further information about this feature can be found in [[Switch roles]] and the paragraph on testing a new role in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
==Are there any example roles?==&lt;br /&gt;
&lt;br /&gt;
Yes, as follows:&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role|Forum moderator]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Calendar editor role|Calendar editor]] - for providing a user with permission to add site events to the calendar&lt;br /&gt;
*[[Blogger role|Blogger]] - for limiting blogging to specific users only&lt;br /&gt;
*[[Quiz user with unlimited time role|Quiz user with unlimited time]] - for allowing a user unlimited time to attempt a quiz which has a time limit set&lt;br /&gt;
*[[Question creator role|Question creator]] - for enabling students to create questions for use in quizzes&lt;br /&gt;
&lt;br /&gt;
==Logged-in users can&#039;t read the site news. What can I do?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override permissions&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Scroll down to &#039;&#039;&#039;Forum&#039;&#039;&#039;&lt;br /&gt;
#Change the capability [[Capabilities/mod/forum:viewdiscussion|mod/forum:viewdiscussion]] to &#039;&#039;allow&#039;&#039;&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I enable logged-in users to participate in front page activities?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Change capabilities to &#039;&#039;allow&#039;&#039; for all required activities e.g. record a choice, reply to posts&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Note that for this to work, you need to make the default role for all users &amp;quot;authenticated user&amp;quot;. This is the default for new versions of Moodle. In older versions, the default setting is guest, so if you have recently upgraded, you may have to change this setting. You can change the setting via &#039;&#039;Site Administration &amp;gt; Permissions &amp;gt; User Policies&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Click on Student&lt;br /&gt;
#Select all users in the potential users list, and use the left-facing arrow button to add them to the existing users list&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I copy a custom role from one Moodle site to another==&lt;br /&gt;
&lt;br /&gt;
There is no import and export facility for roles, but it can be achieved nearly as easily using backup and restore.&lt;br /&gt;
&lt;br /&gt;
# Create an empty course with all the default settings&lt;br /&gt;
# Assign anybody to your custom role (or roles) within the course&lt;br /&gt;
# Backup the course (all defaults are fine)&lt;br /&gt;
# Download the backup file&lt;br /&gt;
# Upload the backup file to the site files of the target Moodle&lt;br /&gt;
# Restore the course (all defaults are fine)&lt;br /&gt;
# Delete the course.&lt;br /&gt;
&lt;br /&gt;
You will find that the custom roles have been recreated in the target site.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities forum]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[de:Rollen FAQ]]&lt;br /&gt;
[[es:FAQ_roles]]&lt;br /&gt;
[[fr:FAQ des rôles]]&lt;br /&gt;
[[ja:ロールFAQ]]&lt;br /&gt;
[[ru:FAQ по ролям]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40180</id>
		<title>Roles FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40180"/>
		<updated>2008-07-21T19:16:58Z</updated>

		<summary type="html">&lt;p&gt;Jisner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
==What is the definition of a...==&lt;br /&gt;
&lt;br /&gt;
;Role&lt;br /&gt;
:An identifier of the user&#039;s status in some context, for example Teacher, Student and Forum moderator&lt;br /&gt;
;Capability&lt;br /&gt;
:A description of a particular Moodle feature, for example [[Capabilities/moodle/blog:create|moodle/blog:create]]&lt;br /&gt;
;Permission&lt;br /&gt;
:A setting for a capability - inherit, allow, prevent or prohibit&lt;br /&gt;
;Context&lt;br /&gt;
:A &amp;quot;space&amp;quot; in Moodle, such as courses, activity modules or blocks&lt;br /&gt;
&lt;br /&gt;
==Why isn&#039;t my role change taking effect?==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.7.x and 1.8.x, role assignments and overrides do not take effect immediately.  They are delayed until the next time the user logs in.  Starting with Moodle 1.9, explicit role assignments and overrides take effect immediately. However role assignments resulting from changes to certain user policies (for example, changing the default front page role) may be delayed until the next login.&lt;br /&gt;
&lt;br /&gt;
If you are testing a new role, [[Manage_roles#Testing_a_new_role | here are some suggestions]].&lt;br /&gt;
&lt;br /&gt;
Also, please check the context in which the role is assigned. Certain capabilities e.g. [[Capabilities/moodle/user:update|moodle/user:update]] may only be applied in the system context, so assigning a role in the course context will result in the role change not taking effect.&lt;br /&gt;
&lt;br /&gt;
==Why are participants being added automatically when a new course is created?==&lt;br /&gt;
&lt;br /&gt;
If a user is assigned a system role or a role in the course category context then the user has this role in ALL courses in that context. Thus users who are students or teachers at the category level appear as course participants in all courses in that category.&lt;br /&gt;
&lt;br /&gt;
Please check &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039; and also the Assign roles link in course categories page and unassign users as necessary.&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
*Users are assigned the role of student in the site/system context rather than the course context (see FAQ above)&lt;br /&gt;
Or&lt;br /&gt;
*The default role for all users in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to Student rather than Authenticated user (Moodle 1.8 onwards).&lt;br /&gt;
&lt;br /&gt;
==Why are there differences in the users listed as course participants and users assigned roles in a course?==&lt;br /&gt;
&lt;br /&gt;
Users assigned roles in a higher context, for example users assigned the role of teacher in a course category context, may appear as course participants. The discussion [http://moodle.org/mod/forum/discuss.php?d=59900 Discrepancies between Assign Roles lists and Participants list] contains a longer explanation. &lt;br /&gt;
&lt;br /&gt;
==How can I prevent administrators being listed as course participants?==&lt;br /&gt;
&lt;br /&gt;
Ensure that administrators are not assigned another role in addition to their admin role.&lt;br /&gt;
&lt;br /&gt;
==Why are hidden assignments still visible?==&lt;br /&gt;
&lt;br /&gt;
Hidden assignments are not hidden from admins or teachers i.e. users with the [[Capabilities/moodle/role:viewhiddenassigns|viewhiddenassigns capability]].&lt;br /&gt;
&lt;br /&gt;
==Where are permissions inherited from?==&lt;br /&gt;
&lt;br /&gt;
Permissions are inherited from a role assigned in a higher-level context which has permissions set to allow for particular capabilities. If permission is &amp;quot;Not set&amp;quot; in any context and not allowed in any higher context (in particular, if you are creating or editing a role at the site level), then a user will have no permission for that capability.&lt;br /&gt;
&lt;br /&gt;
For example, the Student role has permission not set for the change site configuration capability. The permission is never allowed in any context so users assigned the role of Student cannot change the site configuration.&lt;br /&gt;
&lt;br /&gt;
==What is my role here?==&lt;br /&gt;
&lt;br /&gt;
This is a frequently asked question, but an improper one.  The correct question is &amp;quot;What are my &#039;&#039;permissions&#039;&#039; here?&amp;quot;  In any given context, you often have two or more roles.  In addition, one or more role overrides may be in effect.  Your permissions in a given context are a result of &amp;quot;adding&amp;quot; the individual permissions from these roles and overrides according to certain rules.  As Tim Hunt writes in [http://moodle.org/mod/forum/discuss.php?d=90140 this discussion], the rules &amp;quot;normally do what you expect.&amp;quot;  However when permissions conflict, the results can be surprising, and it pays to understand [[How permissions are calculated]].&lt;br /&gt;
&lt;br /&gt;
==How do I debug a roles-related problem?==&lt;br /&gt;
&lt;br /&gt;
If you&#039;re having a problem that you suspect is related to roles, consider using [[The rolesdebug.php roles debugging script | the rolesdebug.php roles debugging script]].  You can download it from the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=1204 Modules and plugins database].  The script gives you a spatial view of your role assignments and overrides in a given context, and analyzes your permissions there.  To interpret the output requires a basic understanding of roles and capabilities.  If you are a complete roles novice, run the script and post the output to the [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities Forum].&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from changing their own password?==&lt;br /&gt;
&lt;br /&gt;
To prevent a user from changing their own password, you must make sure they do not have moodle/user:changeownpassword (&amp;quot;Change own password&amp;quot;) = Allow in the System context. The Authenticated user role (which is assigned to users in the System context) has moodle/user:changeownpassword = Allow by default, so you have two choices: &lt;br /&gt;
# edit Authenticated user, setting moodle/user:changeownpassword = Not set &lt;br /&gt;
# create a new role CannotChangeOwnPassword with moodle/user:changeownpassword = Prevent and all other permissions Not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles). &lt;br /&gt;
&lt;br /&gt;
Choice (1) will prevent &#039;&#039;all&#039;&#039; users from changing their passwords (except for the administrator, who can do anything).  To selectively allow selected users (say teachers) to change their passwords, you could create a new role CanChangeOwnPassword with moodle/user:changeownpassword = Allow and all other permissions not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles).&lt;br /&gt;
&lt;br /&gt;
Choice (2) allows you to be selective, but if you have a lot of users that you want to prevent (say, all students), you will have to make a lot of role assignments in the System context.  There is currently no convenient way to do this, so you might consider choice (1).&lt;br /&gt;
&lt;br /&gt;
Note that you MUST deal with this permission in the System context.&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from editing their own profile?==&lt;br /&gt;
&lt;br /&gt;
See [[Roles_FAQ#How can I prevent a user from changing their own password? | How can I prevent a user from changing their own password?]]  The answer to this question is the same if you substitute &#039;&#039;edit their own profile&#039;&#039; for &#039;&#039;change their own password&#039;&#039; and &#039;&#039;moodle/user:editownprofile&#039;&#039; for &#039;&#039;moodle/user:changeownpassword.&#039;&#039; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
==Are there any differences in Roles in Moodle 1.7 and 1.8?==&lt;br /&gt;
&lt;br /&gt;
In addition to many Roles fixes and refinements (see the list of [http://tracker.moodle.org/secure/IssueNavigator.jspa?mode=hide&amp;amp;requestId=10221 Roles improvements] in the Tracker), in Moodle 1.8 the &#039;&#039;system&#039;&#039; context is separated from the &#039;&#039;front page&#039;&#039; context. Roles may be assigned in the front page context via &#039;&#039;Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Duplicate role&amp;quot; button has been added in Moodle 1.8, which makes creating new roles based on predefined roles much quicker.&lt;br /&gt;
&lt;br /&gt;
==How do I change the name for &amp;quot;teacher&amp;quot; in the course description?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
* Edit the role of Teacher via &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; and rename it. The new name will apply site-wide.&lt;br /&gt;
Or&lt;br /&gt;
* Create a duplicate teacher role with an alternative name and assign users the duplicate teacher role as appropriate in the course context. In &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Course manager&#039;&#039; select the alternative name for teacher that you wish to be displayed in the course description.&lt;br /&gt;
Or&lt;br /&gt;
* One more way to do it in 1.8 is to create new &amp;quot;dummy&amp;quot; roles (no capabilities) with those names and assign them to teachers along with the real roles. In the course manager settings you can choose which roles display on the front page under each course. (The feature request [http://tracker.moodle.org/browse/MDL-9182 Ability to assign or display custom title for role of person in course] contains this further method.)&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}From Moodle 1.9 onwards, names for different roles in a course may be changed in the [[Course settings|course settings]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to set role overrides?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Edit the teacher role and change the capability [[Capabilities/moodle/role:override|moodle/role:override]] to allow.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
#Click the tab &amp;quot;Allow role overrides&amp;quot; (in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;).&lt;br /&gt;
#Check the appropriate box to allow a teacher to override the student role.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to assign other teachers in a course?==&lt;br /&gt;
&lt;br /&gt;
This is disabled by default but it can be switched on by modifying the teacher&#039;s role. In &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; select the &amp;quot;Allow role assignments&amp;quot; tab and tick the checkbox where Teacher and Teacher intersect.&lt;br /&gt;
&lt;br /&gt;
==Why doesn&#039;t &amp;quot;Switch role to..&amp;quot; within a course seem to work properly for a course creator?==&lt;br /&gt;
&lt;br /&gt;
This feature is intended for teachers so that they can see how their course appears for students. It doesn&#039;t work reliably outside the course.&lt;br /&gt;
&lt;br /&gt;
Further information about this feature can be found in [[Switch roles]] and the paragraph on testing a new role in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
==Are there any example roles?==&lt;br /&gt;
&lt;br /&gt;
Yes, as follows:&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role|Forum moderator]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Calendar editor role|Calendar editor]] - for providing a user with permission to add site events to the calendar&lt;br /&gt;
*[[Blogger role|Blogger]] - for limiting blogging to specific users only&lt;br /&gt;
*[[Quiz user with unlimited time role|Quiz user with unlimited time]] - for allowing a user unlimited time to attempt a quiz which has a time limit set&lt;br /&gt;
*[[Question creator role|Question creator]] - for enabling students to create questions for use in quizzes&lt;br /&gt;
&lt;br /&gt;
==Logged-in users can&#039;t read the site news. What can I do?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override permissions&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Scroll down to &#039;&#039;&#039;Forum&#039;&#039;&#039;&lt;br /&gt;
#Change the capability [[Capabilities/mod/forum:viewdiscussion|mod/forum:viewdiscussion]] to &#039;&#039;allow&#039;&#039;&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I enable logged-in users to participate in front page activities?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Change capabilities to &#039;&#039;allow&#039;&#039; for all required activities e.g. record a choice, reply to posts&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Note that for this to work, you need to make the default role for all users &amp;quot;authenticated user&amp;quot;. This is the default for new versions of Moodle. In older versions, the default setting is guest, so if you have recently upgraded, you may have to change this setting. You can change the setting via &#039;&#039;Site Administration &amp;gt; Permissions &amp;gt; User Policies&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Click on Student&lt;br /&gt;
#Select all users in the potential users list, and use the left-facing arrow button to add them to the existing users list&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I copy a custom role from one Moodle site to another==&lt;br /&gt;
&lt;br /&gt;
There is no import and export facility for roles, but it can be achieved nearly as easily using backup and restore.&lt;br /&gt;
&lt;br /&gt;
# Create an empty course with all the default settings&lt;br /&gt;
# Assign anybody to your custom role (or roles) within the course&lt;br /&gt;
# Backup the course (all defaults are fine)&lt;br /&gt;
# Download the backup file&lt;br /&gt;
# Upload the backup file to the site files of the target Moodle&lt;br /&gt;
# Restore the course (all defaults are fine)&lt;br /&gt;
# Delete the course.&lt;br /&gt;
&lt;br /&gt;
You will find that the custom roles have been recreated in the target site.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities forum]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[de:Rollen FAQ]]&lt;br /&gt;
[[es:FAQ_roles]]&lt;br /&gt;
[[fr:FAQ des rôles]]&lt;br /&gt;
[[ja:ロールFAQ]]&lt;br /&gt;
[[ru:FAQ по ролям]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40179</id>
		<title>Roles FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=40179"/>
		<updated>2008-07-21T19:11:23Z</updated>

		<summary type="html">&lt;p&gt;Jisner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
==What is the definition of a...==&lt;br /&gt;
&lt;br /&gt;
;Role&lt;br /&gt;
:An identifier of the user&#039;s status in some context, for example Teacher, Student and Forum moderator&lt;br /&gt;
;Capability&lt;br /&gt;
:A description of a particular Moodle feature, for example [[Capabilities/moodle/blog:create|moodle/blog:create]]&lt;br /&gt;
;Permission&lt;br /&gt;
:A setting for a capability - inherit, allow, prevent or prohibit&lt;br /&gt;
;Context&lt;br /&gt;
:A &amp;quot;space&amp;quot; in Moodle, such as courses, activity modules or blocks&lt;br /&gt;
&lt;br /&gt;
==Why isn&#039;t my role change taking effect?==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.7.x and 1.8.x, role assignments and overrides do not take effect immediately.  They are delayed until the next time the user logs in.  Starting with Moodle 1.9, explicit role assignments and overrides take effect immediately. However role assignments resulting from changes to certain user policies (for example, changing the default front page role) may be delayed until the next login.&lt;br /&gt;
&lt;br /&gt;
If you are testing a new role, [[Manage_roles#Testing_a_new_role | here are some suggestions]].&lt;br /&gt;
&lt;br /&gt;
Also, please check the context in which the role is assigned. Certain capabilities e.g. [[Capabilities/moodle/user:update|moodle/user:update]] may only be applied in the system context, so assigning a role in the course context will result in the role change not taking effect.&lt;br /&gt;
&lt;br /&gt;
==Why are participants being added automatically when a new course is created?==&lt;br /&gt;
&lt;br /&gt;
If a user is assigned a system role or a role in the course category context then the user has this role in ALL courses in that context. Thus users who are students or teachers at the category level appear as course participants in all courses in that category.&lt;br /&gt;
&lt;br /&gt;
Please check &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039; and also the Assign roles link in course categories page and unassign users as necessary.&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
*Users are assigned the role of student in the site/system context rather than the course context (see FAQ above)&lt;br /&gt;
Or&lt;br /&gt;
*The default role for all users in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to Student rather than Authenticated user (Moodle 1.8 onwards).&lt;br /&gt;
&lt;br /&gt;
==Why are there differences in the users listed as course participants and users assigned roles in a course?==&lt;br /&gt;
&lt;br /&gt;
Users assigned roles in a higher context, for example users assigned the role of teacher in a course category context, may appear as course participants. The discussion [http://moodle.org/mod/forum/discuss.php?d=59900 Discrepancies between Assign Roles lists and Participants list] contains a longer explanation. &lt;br /&gt;
&lt;br /&gt;
==How can I prevent administrators being listed as course participants?==&lt;br /&gt;
&lt;br /&gt;
Ensure that administrators are not assigned another role in addition to their admin role.&lt;br /&gt;
&lt;br /&gt;
==Why are hidden assignments still visible?==&lt;br /&gt;
&lt;br /&gt;
Hidden assignments are not hidden from admins or teachers i.e. users with the [[Capabilities/moodle/role:viewhiddenassigns|viewhiddenassigns capability]].&lt;br /&gt;
&lt;br /&gt;
==Where are permissions inherited from?==&lt;br /&gt;
&lt;br /&gt;
Permissions are inherited from a role assigned in a higher-level context which has permissions set to allow for particular capabilities. If permission is &amp;quot;Not set&amp;quot; in any context and not allowed in any higher context (in particular, if you are creating or editing a role at the site level), then a user will have no permission for that capability.&lt;br /&gt;
&lt;br /&gt;
For example, the Student role has permission not set for the change site configuration capability. The permission is never allowed in any context so users assigned the role of Student cannot change the site configuration.&lt;br /&gt;
&lt;br /&gt;
==What is my role here?==&lt;br /&gt;
&lt;br /&gt;
This is a frequently asked question, but an improper one.  The correct question is &amp;quot;What are my &#039;&#039;permissions&#039;&#039; here?&amp;quot;  In any given context, you often have two or more roles.  In addition, one or more role overrides may be in effect.  Your permissions in a given context are a result of &amp;quot;adding&amp;quot; the individual permissions from these roles and overrides according to certain rules.  As Tim Hunt writes in [http://moodle.org/mod/forum/discuss.php?d=90140 this discussion], the rules &amp;quot;normally do what you expect.&amp;quot;  However when permissions conflict, the results can be surprising, and it pays to understand [[How permissions are calculated]].&lt;br /&gt;
&lt;br /&gt;
==How do I debug a roles-related problem?==&lt;br /&gt;
&lt;br /&gt;
If you&#039;re having a problem that you suspect is related to roles, consider using [[The rolesdebug.php roles debugging script | the rolesdebug.php roles debugging script]].  You can download it from the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=1204 Modules and plugins database].  The script gives you a spatial view of your role assignments and overrides in a given context, and analyzes your permissions there.  To interpret the output requires a basic understanding of roles and capabilities.  If you are a complete roles novice, run the script and post the output to the [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities Forum].&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from changing their own password?==&lt;br /&gt;
&lt;br /&gt;
To prevent a user from changing their own password, you must make sure they do not have moodle/user:changeownpassword (&amp;quot;Change own password&amp;quot;) = Allow in the System context. The Authenticated user role (which is assigned to users in the System context) has moodle/user:changeownpassword = Allow by default, so you have two choices: &lt;br /&gt;
# edit Authenticated user, setting moodle/user:changeownpassword = Not set &lt;br /&gt;
# create a new role CannotChangeOwnPassword with moodle/user:changeownpassword = Prevent and all other permissions Not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles). &lt;br /&gt;
&lt;br /&gt;
Choice (1) will prevent &#039;&#039;all&#039;&#039; users from changing their passwords (except for the administrator, who can do anything).  To selectively allow selected users (say teachers) to change their passwords, you could create a new role CanChangeOwnPassword with moodle/user:changeownpassword = Allow and all other permissions not set and assign the role to selected users in the System context (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Assign system roles).&lt;br /&gt;
&lt;br /&gt;
Choice (2) allows you to be selective, but if you have a lot of users that you want to prevent (say, all students), you will have to make a lot of role assignments in the System context.  There is currently no convenient way to do this, so you might consider choice (1).&lt;br /&gt;
&lt;br /&gt;
Note that you MUST deal with this permission in the System context.&lt;br /&gt;
&lt;br /&gt;
==How can I prevent a user from editing their own profile?==&lt;br /&gt;
&lt;br /&gt;
See &amp;quot;How can I prevent a user from chaning their own password?&amp;quot;  The answer to this question is the same if you substitute &amp;quot;edit their own profile&amp;quot; for &amp;quot;change their own password&amp;quot; and &amp;quot;moodle/user:editownprofile&amp;quot; for &amp;quot;moodle/user:changeownpassword.&amp;quot; &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
==Are there any differences in Roles in Moodle 1.7 and 1.8?==&lt;br /&gt;
&lt;br /&gt;
In addition to many Roles fixes and refinements (see the list of [http://tracker.moodle.org/secure/IssueNavigator.jspa?mode=hide&amp;amp;requestId=10221 Roles improvements] in the Tracker), in Moodle 1.8 the &#039;&#039;system&#039;&#039; context is separated from the &#039;&#039;front page&#039;&#039; context. Roles may be assigned in the front page context via &#039;&#039;Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Duplicate role&amp;quot; button has been added in Moodle 1.8, which makes creating new roles based on predefined roles much quicker.&lt;br /&gt;
&lt;br /&gt;
==How do I change the name for &amp;quot;teacher&amp;quot; in the course description?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
* Edit the role of Teacher via &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; and rename it. The new name will apply site-wide.&lt;br /&gt;
Or&lt;br /&gt;
* Create a duplicate teacher role with an alternative name and assign users the duplicate teacher role as appropriate in the course context. In &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Course manager&#039;&#039; select the alternative name for teacher that you wish to be displayed in the course description.&lt;br /&gt;
Or&lt;br /&gt;
* One more way to do it in 1.8 is to create new &amp;quot;dummy&amp;quot; roles (no capabilities) with those names and assign them to teachers along with the real roles. In the course manager settings you can choose which roles display on the front page under each course. (The feature request [http://tracker.moodle.org/browse/MDL-9182 Ability to assign or display custom title for role of person in course] contains this further method.)&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}From Moodle 1.9 onwards, names for different roles in a course may be changed in the [[Course settings|course settings]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to set role overrides?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Edit the teacher role and change the capability [[Capabilities/moodle/role:override|moodle/role:override]] to allow.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
#Click the tab &amp;quot;Allow role overrides&amp;quot; (in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;).&lt;br /&gt;
#Check the appropriate box to allow a teacher to override the student role.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to assign other teachers in a course?==&lt;br /&gt;
&lt;br /&gt;
This is disabled by default but it can be switched on by modifying the teacher&#039;s role. In &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; select the &amp;quot;Allow role assignments&amp;quot; tab and tick the checkbox where Teacher and Teacher intersect.&lt;br /&gt;
&lt;br /&gt;
==Why doesn&#039;t &amp;quot;Switch role to..&amp;quot; within a course seem to work properly for a course creator?==&lt;br /&gt;
&lt;br /&gt;
This feature is intended for teachers so that they can see how their course appears for students. It doesn&#039;t work reliably outside the course.&lt;br /&gt;
&lt;br /&gt;
Further information about this feature can be found in [[Switch roles]] and the paragraph on testing a new role in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
==Are there any example roles?==&lt;br /&gt;
&lt;br /&gt;
Yes, as follows:&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role|Forum moderator]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Calendar editor role|Calendar editor]] - for providing a user with permission to add site events to the calendar&lt;br /&gt;
*[[Blogger role|Blogger]] - for limiting blogging to specific users only&lt;br /&gt;
*[[Quiz user with unlimited time role|Quiz user with unlimited time]] - for allowing a user unlimited time to attempt a quiz which has a time limit set&lt;br /&gt;
*[[Question creator role|Question creator]] - for enabling students to create questions for use in quizzes&lt;br /&gt;
&lt;br /&gt;
==Logged-in users can&#039;t read the site news. What can I do?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override permissions&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Scroll down to &#039;&#039;&#039;Forum&#039;&#039;&#039;&lt;br /&gt;
#Change the capability [[Capabilities/mod/forum:viewdiscussion|mod/forum:viewdiscussion]] to &#039;&#039;allow&#039;&#039;&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I enable logged-in users to participate in front page activities?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Change capabilities to &#039;&#039;allow&#039;&#039; for all required activities e.g. record a choice, reply to posts&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Note that for this to work, you need to make the default role for all users &amp;quot;authenticated user&amp;quot;. This is the default for new versions of Moodle. In older versions, the default setting is guest, so if you have recently upgraded, you may have to change this setting. You can change the setting via &#039;&#039;Site Administration &amp;gt; Permissions &amp;gt; User Policies&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Click on Student&lt;br /&gt;
#Select all users in the potential users list, and use the left-facing arrow button to add them to the existing users list&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
==How do I copy a custom role from one Moodle site to another==&lt;br /&gt;
&lt;br /&gt;
There is no import and export facility for roles, but it can be achieved nearly as easily using backup and restore.&lt;br /&gt;
&lt;br /&gt;
# Create an empty course with all the default settings&lt;br /&gt;
# Assign anybody to your custom role (or roles) within the course&lt;br /&gt;
# Backup the course (all defaults are fine)&lt;br /&gt;
# Download the backup file&lt;br /&gt;
# Upload the backup file to the site files of the target Moodle&lt;br /&gt;
# Restore the course (all defaults are fine)&lt;br /&gt;
# Delete the course.&lt;br /&gt;
&lt;br /&gt;
You will find that the custom roles have been recreated in the target site.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities forum]&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[de:Rollen FAQ]]&lt;br /&gt;
[[es:FAQ_roles]]&lt;br /&gt;
[[fr:FAQ des rôles]]&lt;br /&gt;
[[ja:ロールFAQ]]&lt;br /&gt;
[[ru:FAQ по ролям]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Forum_ratings&amp;diff=39931</id>
		<title>Forum ratings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Forum_ratings&amp;diff=39931"/>
		<updated>2008-07-17T19:57:41Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* How to use */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Forums}}&lt;br /&gt;
Forum ratings allow users to evaluate posts in a forum.&lt;br /&gt;
&lt;br /&gt;
==How to use==&lt;br /&gt;
If a user has mod/forum:rate (&amp;quot;Rate posts&amp;quot;) = Allow in a forum context, the user will be able to rate posts in that forum (see below). Note that the predefined Teacher role has mod/forum:rate (&amp;quot;Rate posts&amp;quot;) = Allow, while the predefined Student role has mod/forum:rate (&amp;quot;Rate posts&amp;quot;) = Not set.  As a result, only teachers are allowed to rate forum posts by default.  To allow students to rate posts, see [[Forum_permissions#Enabling_students_to_rate_posts | enabling students to rate posts]].&lt;br /&gt;
&lt;br /&gt;
A user who is allowed to rate posts will see, at the end of each post (except, of course, for his own posts) a label &amp;quot;Rate this post&amp;quot; with a pulldown menu.  The menu displays a [[Scales|scale]] that the forum creator selected in the [[Adding/editing_a_forum#Grade|Forum grade settings]].  The rating can become part of the [[Grades|Gradebook]].  &lt;br /&gt;
&lt;br /&gt;
[[Image:Forum rating example1 mu.png|thumb|center|Teacher view of a previously rated student post]]&lt;br /&gt;
&lt;br /&gt;
==Tips and Tricks==&lt;br /&gt;
*Not all your students are seeing stars?  It is all about their browser settings, language and installed fonts.  &lt;br /&gt;
**If this is a problem, stick with the basics in you scale.  Perhaps create a scale that uses Numbers and words. &lt;br /&gt;
&lt;br /&gt;
==See also==  &lt;br /&gt;
*[[Course level ratings]]&lt;br /&gt;
*[[Scales]]&lt;br /&gt;
*[[Grades]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Forum_ratings&amp;diff=39930</id>
		<title>Forum ratings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Forum_ratings&amp;diff=39930"/>
		<updated>2008-07-17T19:54:38Z</updated>

		<summary type="html">&lt;p&gt;Jisner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Forums}}&lt;br /&gt;
Forum ratings allow users to evaluate posts in a forum.&lt;br /&gt;
&lt;br /&gt;
==How to use==&lt;br /&gt;
If a user has mod/forum:rate (&amp;quot;Rate posts&amp;quot;) = Allow in a forum context, the user will be able to rate posts in that forum (see below). Note that the predefined Teacher role has mod/forum:rate (&amp;quot;Rate posts&amp;quot;) = Allow, while the predefined Student role has mod/forum:rate (&amp;quot;Rate posts&amp;quot;) = Not set.  As a result, only teachers are allowed to rate forum posts by default.&lt;br /&gt;
&lt;br /&gt;
A user who is allowed to rate posts will see, at the end of each post (except, of course, for his own posts) a label &amp;quot;Rate this post&amp;quot; with a pulldown menu.  The menu displays a [[Scales|scale]] that the forum creator selected in the [[Adding/editing_a_forum#Grade|Forum grade settings]].  The rating can become part of the [[Grades|Gradebook]].  &lt;br /&gt;
&lt;br /&gt;
[[Image:Forum rating example1 mu.png|thumb|center|Teacher view of a previously rated student post]]&lt;br /&gt;
&lt;br /&gt;
==Tips and Tricks==&lt;br /&gt;
*Not all your students are seeing stars?  It is all about their browser settings, language and installed fonts.  &lt;br /&gt;
**If this is a problem, stick with the basics in you scale.  Perhaps create a scale that uses Numbers and words. &lt;br /&gt;
&lt;br /&gt;
==See also==  &lt;br /&gt;
*[[Course level ratings]]&lt;br /&gt;
*[[Scales]]&lt;br /&gt;
*[[Grades]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Forum_ratings&amp;diff=39929</id>
		<title>Forum ratings</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Forum_ratings&amp;diff=39929"/>
		<updated>2008-07-17T19:51:24Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* How to use */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Forums}}&lt;br /&gt;
Forum ratings allow either the teacher and/or students to evaluate posts in a forum.&lt;br /&gt;
&lt;br /&gt;
==How to use==&lt;br /&gt;
If a user has mod/forum:rate (&amp;quot;Rate posts&amp;quot;) = Allow in a forum context, the user will see a label &amp;quot;Rate this post&amp;quot; with a pulldown menu at the bottom of each post (except, of course, for his own posts).  The menu displays a [[Scales|scale]] that the forum creator selected in the [[Adding/editing_a_forum#Grade|Forum grade settings]].  The rating can become part of the [[Grades|Gradebook]].  Note that the predefined Teacher role has mod/forum:rate (&amp;quot;Rate posts&amp;quot;) = Allow, while the predefined Student role has mod/forum:rate (&amp;quot;Rate posts&amp;quot;) = Not set.  As a result, only teachers are allowed to rate forum posts by default.&lt;br /&gt;
&lt;br /&gt;
[[Image:Forum rating example1 mu.png|thumb|center|Teacher view of a previously rated student post]]&lt;br /&gt;
&lt;br /&gt;
==Tips and Tricks==&lt;br /&gt;
*Not all your students are seeing stars?  It is all about their browser settings, language and installed fonts.  &lt;br /&gt;
**If this is a problem, stick with the basics in you scale.  Perhaps create a scale that uses Numbers and words. &lt;br /&gt;
&lt;br /&gt;
==See also==  &lt;br /&gt;
*[[Course level ratings]]&lt;br /&gt;
*[[Scales]]&lt;br /&gt;
*[[Grades]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Grade_import&amp;diff=36779</id>
		<title>Grade import</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Grade_import&amp;diff=36779"/>
		<updated>2008-05-26T13:57:37Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* Importing grades */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Grades}}Grades may be imported as a CSV or XML file.&lt;br /&gt;
&lt;br /&gt;
The import file format is the same as the corresponding export format. &lt;br /&gt;
&lt;br /&gt;
Note: Grade import is equivalent to manual grading in the [[Grader report|grader report]]. Thus, if grades for a particular  Moodle activity such as an assignment are imported, they can no longer be edited via the assignment submission page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Importing grades==&lt;br /&gt;
[[Image:Csv grade import.png|thumb|CSV grade import]]&lt;br /&gt;
To import grades into the gradebook:&lt;br /&gt;
&lt;br /&gt;
# Decide on an import format - CSV or XML file (see below) - then [[Grade export|export some grades]] using the corresponding export format.&lt;br /&gt;
# Edit the export file as appropriate and save it.&lt;br /&gt;
# Select your chosen import format from the gradebook dropdown menu.&lt;br /&gt;
# Browse and upload your previously saved file.&lt;br /&gt;
# Set options as required.&lt;br /&gt;
# Click the &amp;quot;Upload grades&amp;quot; button.&lt;br /&gt;
# CSV import only: Preview the grade import and choose the column mapping then click the &amp;quot;Upload grades&amp;quot; button to complete the grade import.&lt;br /&gt;
&lt;br /&gt;
You need two permissions to import grades: (1) general permission to import grades and (2) permission to import grades in a particular format. For example, to import CSV grades you need&lt;br /&gt;
&lt;br /&gt;
    moodle/grade:import (&amp;quot;Import grades&amp;quot;) = Allow&lt;br /&gt;
    gradeimport/csv:view (&amp;quot;Import grades from CSV&amp;quot;) = Allow&lt;br /&gt;
&lt;br /&gt;
==XML import==&lt;br /&gt;
&lt;br /&gt;
XML import requires the numerical grade, activity idnumber and user idnumber.&lt;br /&gt;
&lt;br /&gt;
===Remote file URL===&lt;br /&gt;
&lt;br /&gt;
The remote file URL field is for fetching data from a remote server, such as a student information system.&lt;br /&gt;
&lt;br /&gt;
==CSV import==&lt;br /&gt;
&lt;br /&gt;
CSV import is more flexible than XML import, as you may choose the column mapping.&lt;br /&gt;
&lt;br /&gt;
===Encoding===&lt;br /&gt;
&lt;br /&gt;
If you are unsure of the encoding of your CSV file, try selecting the second option in the encoding dropdown menu. If you&#039;ve used Excel to produce the CSV file the second option WINDOWS-xxx encoding is probably the correct one. The grade import preview will tell you if you guessed the encoding correctly.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=85944 Gradebook confusion]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=92081 Can external software insert data into the gradebook?]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=36016</id>
		<title>Roles FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=36016"/>
		<updated>2008-05-12T13:09:20Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* What is my role here? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
&lt;br /&gt;
==What is the definition of a...==&lt;br /&gt;
&lt;br /&gt;
;Role&lt;br /&gt;
:An identifier of the user&#039;s status in some context, for example Teacher, Student and Forum moderator&lt;br /&gt;
;Capability&lt;br /&gt;
:A description of a particular Moodle feature, for example [[Capabilities/moodle/blog:create|moodle/blog:create]]&lt;br /&gt;
;Permission&lt;br /&gt;
:A setting for a capability - inherit, allow, prevent or prohibit&lt;br /&gt;
;Context&lt;br /&gt;
:A &amp;quot;space&amp;quot; in Moodle, such as courses, activity modules or blocks&lt;br /&gt;
&lt;br /&gt;
==Why isn&#039;t my role change taking effect?==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.7.x and 1.8.x, role assignments and overrides do not take effect immediately.  They are delayed until the next time the user logs in.  Starting with Moodle 1.9, explicit role assignments and overrides take effect immediately. However role assignments resulting from changes to certain user policies (for example, changing the default front page role) may be delayed until the next login.&lt;br /&gt;
&lt;br /&gt;
If you are testing a new role, [[Manage_roles#Testing_a_new_role | here are some suggestions]].&lt;br /&gt;
&lt;br /&gt;
Also, please check the context in which the role is assigned. Certain capabilities e.g. [[Capabilities/moodle/user:update|moodle/user:update]] may only be applied in the system context, so assigning a role in the course context will result in the role change not taking effect.&lt;br /&gt;
&lt;br /&gt;
==Why are participants being added automatically when a new course is created?==&lt;br /&gt;
&lt;br /&gt;
If a user is assigned a system role or a role in the course category context then the user has this role in ALL courses in that context. Thus users who are students or teachers at the category level appear as course participants in all courses in that category.&lt;br /&gt;
&lt;br /&gt;
Please check &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039; and also the Assign roles link in course categories page and unassign users as necessary.&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
*Users are assigned the role of student in the site/system context rather than the course context (see FAQ above)&lt;br /&gt;
Or&lt;br /&gt;
*The default role for all users in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to Student rather than Authenticated user (Moodle 1.8 onwards).&lt;br /&gt;
&lt;br /&gt;
==Why are there differences in the users listed as course participants and users assigned roles in a course?==&lt;br /&gt;
&lt;br /&gt;
Users assigned roles in a higher context, for example users assigned the role of teacher in a course category context, may appear as course participants. The discussion [http://moodle.org/mod/forum/discuss.php?d=59900 Discrepancies between Assign Roles lists and Participants list] contains a longer explanation. &lt;br /&gt;
&lt;br /&gt;
==How can I prevent administrators being listed as course participants?==&lt;br /&gt;
&lt;br /&gt;
Ensure that administrators are not assigned another role in addition to their admin role.&lt;br /&gt;
&lt;br /&gt;
==Why are hidden assignments still visible?==&lt;br /&gt;
&lt;br /&gt;
Hidden assignments are not hidden from admins or teachers i.e. users with the [[Capabilities/moodle/role:viewhiddenassigns|viewhiddenassigns capability]].&lt;br /&gt;
&lt;br /&gt;
==Where are permissions inherited from?==&lt;br /&gt;
&lt;br /&gt;
Permissions are inherited from a role assigned in a higher-level context which has permissions set to allow for particular capabilities. If permission is &amp;quot;Not set&amp;quot; in any context and not allowed in any higher context (in particular, if you are creating or editing a role at the site level), then a user will have no permission for that capability.&lt;br /&gt;
&lt;br /&gt;
For example, the Student role has permission not set for the change site configuration capability. The permission is never allowed in any context so users assigned the role of Student cannot change the site configuration.&lt;br /&gt;
&lt;br /&gt;
==What is my role here?==&lt;br /&gt;
&lt;br /&gt;
This is a frequently asked question, but an improper one.  The correct question is &amp;quot;What are my &#039;&#039;permissions&#039;&#039; here?&amp;quot;  In any given context, you often have two or more roles.  In addition, one or more role overrides may be in effect.  Your permissions in a given context are a result of &amp;quot;adding&amp;quot; the individual permissions from these roles and overrides according to certain rules.  As Tim Hunt writes in [http://moodle.org/mod/forum/discuss.php?d=90140 this discussion], the rules &amp;quot;normally do what you expect.&amp;quot;  However when permissions conflict, the results can be surprising, and it pays to understand [[How permissions are calculated]].&lt;br /&gt;
&lt;br /&gt;
==How do I debug a roles-related problem?==&lt;br /&gt;
&lt;br /&gt;
If you&#039;re having a problem that you suspect is related to roles, consider using [[The rolesdebug.php roles debugging script | the rolesdebug.php roles debugging script]].  You can download it from the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=1204 Modules and plugins database].  The script gives you a spatial view of your role assignments and overrides in a given context, and analyzes your permissions there.  To interpret the output requires a basic understanding of roles and capabilities.  If you are a complete roles novice, run the script and post the output to the [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities Forum].&lt;br /&gt;
&lt;br /&gt;
==Are there any differences in Roles in Moodle 1.7 and 1.8?==&lt;br /&gt;
&lt;br /&gt;
In addition to many Roles fixes and refinements (see the list of [http://tracker.moodle.org/secure/IssueNavigator.jspa?mode=hide&amp;amp;requestId=10221 Roles improvements] in the Tracker), in Moodle 1.8 the &#039;&#039;system&#039;&#039; context is separated from the &#039;&#039;front page&#039;&#039; context. Roles may be assigned in the front page context via &#039;&#039;Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Duplicate role&amp;quot; button has been added in Moodle 1.8, which makes creating new roles based on predefined roles much quicker.&lt;br /&gt;
&lt;br /&gt;
==How do I change the name for &amp;quot;teacher&amp;quot; in the course description?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
* Edit the role of Teacher via &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; and rename it. The new name will apply site-wide.&lt;br /&gt;
Or&lt;br /&gt;
* Create a duplicate teacher role with an alternative name and assign users the duplicate teacher role as appropriate in the course context. In &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Course manager&#039;&#039; select the alternative name for teacher that you wish to be displayed in the course description.&lt;br /&gt;
Or&lt;br /&gt;
* One more way to do it in 1.8 is to create new &amp;quot;dummy&amp;quot; roles (no capabilities) with those names and assign them to teachers along with the real roles. In the course manager settings you can choose which roles display on the front page under each course. (The feature request [http://tracker.moodle.org/browse/MDL-9182 Ability to assign or display custom title for role of person in course] contains this further method.)&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}From Moodle 1.9 onwards, names for different roles in a course may be changed in the [[Course settings|course settings]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to set role overrides?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Edit the teacher role and change the capability [[Capabilities/moodle/role:override|moodle/role:override]] to allow.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
#Click the tab &amp;quot;Allow role overrides&amp;quot; (in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;).&lt;br /&gt;
#Check the appropriate box to allow a teacher to override the student role.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to assign other teachers in a course?==&lt;br /&gt;
&lt;br /&gt;
This is disabled by default but it can be switched on by modifying the teacher&#039;s role. In &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; select the &amp;quot;Allow role assignments&amp;quot; tab and tick the checkbox where Teacher and Teacher intersect.&lt;br /&gt;
&lt;br /&gt;
==Why doesn&#039;t &amp;quot;Switch role to..&amp;quot; within a course seem to work properly for a course creator?==&lt;br /&gt;
&lt;br /&gt;
This feature is intended for teachers so that they can see how their course appears for students. It doesn&#039;t work reliably outside the course.&lt;br /&gt;
&lt;br /&gt;
Further information about this feature can be found in [[Switch roles]] and the paragraph on testing a new role in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
==Are there any example roles?==&lt;br /&gt;
&lt;br /&gt;
Yes, as follows:&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Keyholder role]] - for setting the person named as holding a course [[Enrolment key|enrolment key]]&lt;br /&gt;
*[[Calendar editor role|Calendar editor]] - for providing a user with permission to add site events to the calendar&lt;br /&gt;
*[[Blogger role]] - for limiting blogging to specific users only&lt;br /&gt;
&lt;br /&gt;
==Logged-in users can&#039;t read the site news. What can I do?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Scroll down to &#039;&#039;&#039;Forum&#039;&#039;&#039;&lt;br /&gt;
#Change the capability [[Capabilities/mod/forum:viewdiscussion|mod/forum:viewdiscussion]] to &#039;&#039;allow&#039;&#039;&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
==How do I enable logged-in users to participate in front page activities?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Change capabilities to &#039;&#039;allow&#039;&#039; for all required activities e.g. record a choice, reply to posts&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Note that for this to work, you need to make the default role for all users &amp;quot;authenticated user&amp;quot;. This is the default for new versions of Moodle. In older versions, the default setting is guest, so if you have recently upgraded, you may have to change this setting. You can change the setting via &#039;&#039;Site Administration &amp;gt; Permissions &amp;gt; User Policies&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Click on Student&lt;br /&gt;
#Select all users in the potential users list, and use the left-facing arrow button to add them to the existing users list&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ_roles]]&lt;br /&gt;
[[fr:FAQ des rôles]]&lt;br /&gt;
[[ja:ロールFAQ]]&lt;br /&gt;
[[ru:FAQ по ролям]]&lt;br /&gt;
[[de:Rollen FAQ]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=File:Algorithm_path_through_permission_table_A.png&amp;diff=34958</id>
		<title>File:Algorithm path through permission table A.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=File:Algorithm_path_through_permission_table_A.png&amp;diff=34958"/>
		<updated>2008-04-20T15:39:34Z</updated>

		<summary type="html">&lt;p&gt;Jisner: New version of permissions table that correlates more closely with rolesdebug.php.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;New version of permissions table that correlates more closely with rolesdebug.php.&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=File:Calculation-12A.png&amp;diff=34957</id>
		<title>File:Calculation-12A.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=File:Calculation-12A.png&amp;diff=34957"/>
		<updated>2008-04-20T15:39:02Z</updated>

		<summary type="html">&lt;p&gt;Jisner: New version of permissions table that correlates more closely with rolesdebug.php.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;New version of permissions table that correlates more closely with rolesdebug.php.&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=File:Calculation-11A.png&amp;diff=34956</id>
		<title>File:Calculation-11A.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=File:Calculation-11A.png&amp;diff=34956"/>
		<updated>2008-04-20T15:38:22Z</updated>

		<summary type="html">&lt;p&gt;Jisner: New version of permissions table that correlates more closely with rolesdebug.php.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;New version of permissions table that correlates more closely with rolesdebug.php.&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=File:Calculation-10A.png&amp;diff=34955</id>
		<title>File:Calculation-10A.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=File:Calculation-10A.png&amp;diff=34955"/>
		<updated>2008-04-20T15:38:06Z</updated>

		<summary type="html">&lt;p&gt;Jisner: New version of permissions table that correlates more closely with rolesdebug.php.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;New version of permissions table that correlates more closely with rolesdebug.php.&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=File:Calculation-8A.png&amp;diff=34954</id>
		<title>File:Calculation-8A.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=File:Calculation-8A.png&amp;diff=34954"/>
		<updated>2008-04-20T15:37:38Z</updated>

		<summary type="html">&lt;p&gt;Jisner: New version of permissions table that correlates more closely with rolesdebug.php.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;New version of permissions table that correlates more closely with rolesdebug.php.&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=File:Calculation-7A.png&amp;diff=34953</id>
		<title>File:Calculation-7A.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=File:Calculation-7A.png&amp;diff=34953"/>
		<updated>2008-04-20T15:37:19Z</updated>

		<summary type="html">&lt;p&gt;Jisner: New version of permissions table that correlates more closely with rolesdebug.php.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;New version of permissions table that correlates more closely with rolesdebug.php.&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=File:Calculation-6A.png&amp;diff=34952</id>
		<title>File:Calculation-6A.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=File:Calculation-6A.png&amp;diff=34952"/>
		<updated>2008-04-20T15:37:07Z</updated>

		<summary type="html">&lt;p&gt;Jisner: New version of permissions table that correlates more closely with rolesdebug.php.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;New version of permissions table that correlates more closely with rolesdebug.php.&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=File:Calculation-5A.png&amp;diff=34951</id>
		<title>File:Calculation-5A.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=File:Calculation-5A.png&amp;diff=34951"/>
		<updated>2008-04-20T15:36:51Z</updated>

		<summary type="html">&lt;p&gt;Jisner: New version of permissions table that correlates more closely with rolesdebug.php.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;New version of permissions table that correlates more closely with rolesdebug.php.&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=File:Calculation-3A.png&amp;diff=34950</id>
		<title>File:Calculation-3A.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=File:Calculation-3A.png&amp;diff=34950"/>
		<updated>2008-04-20T15:36:32Z</updated>

		<summary type="html">&lt;p&gt;Jisner: New version of permissions table that correlates more closely with rolesdebug.php.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;New version of permissions table that correlates more closely with rolesdebug.php.&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Managing_roles&amp;diff=34148</id>
		<title>Managing roles</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Managing_roles&amp;diff=34148"/>
		<updated>2008-03-28T16:35:53Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
Location: &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The define roles page has three tabs, for managing roles, [[Allow role assignments|allowing role assignments]] and [[Allow role overrides|allowing role overrides]].&lt;br /&gt;
&lt;br /&gt;
The manage roles tab contains a list of roles on your site. The edit column contains icons for editing and deleting roles, and for moving them up or down in the list (affecting the way that roles are listed around Moodle).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Predefined roles==&lt;br /&gt;
Moodle comes with 7 predefined roles:&lt;br /&gt;
*[[Administrator role|Administrator]]&lt;br /&gt;
*[[Course creator role|Course creator]]&lt;br /&gt;
*[[Teacher role|Teacher]]&lt;br /&gt;
*[[Teacher role| Non-editing teacher]]&lt;br /&gt;
*[[Student role|Student]]&lt;br /&gt;
*[[Guest role|Guest]]&lt;br /&gt;
*[[Authenticated user role|Authenticated user]] (from 1.8 onwards)&lt;br /&gt;
&lt;br /&gt;
==Editing a role==&lt;br /&gt;
[[Image:manage roles.png|thumb|Managing roles]]&lt;br /&gt;
To edit a role:&lt;br /&gt;
#Click on Permissions in the Site Administration block, then Define roles.&lt;br /&gt;
#Click the edit icon opposite the role you want to edit e.g. student.&lt;br /&gt;
#On the edit role page, change permissions as required.&lt;br /&gt;
#Scroll to the bottom of the page and click the &amp;quot;Save changes&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
==Adding a new role==&lt;br /&gt;
&lt;br /&gt;
To add a new role:&lt;br /&gt;
#Click on Permissions in the Site Administration block, then Define roles.&lt;br /&gt;
#Click the &amp;quot;Add a new role&amp;quot; button.&lt;br /&gt;
#On the add a new role page, give the role a name. If you need to name the role for multiple languages you can use [[Multi language content|multi-lang syntax]] if you wish, such as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;en&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Teacher&amp;lt;/span&amp;gt; &amp;lt;span lang=&amp;quot;es_es&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Profesor&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. If multi-lang syntax is used then &#039;&#039;Filter all strings&#039;&#039; should be set in [[Filter settings]].&lt;br /&gt;
#Give the role a meaningful short name. The short name is necessary for other plugins in Moodle that may need to refer to the role (e.g. when uploading users from a file or setting enrolments via an enrolment plugin).&lt;br /&gt;
#Give the role a description (optional).&lt;br /&gt;
#Set permissions as required.&lt;br /&gt;
#Scroll to the bottom of the page and click the &amp;quot;Add a new role&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
==Creating a duplicate role==&lt;br /&gt;
{{Moodle 1.8}}In Moodle 1.8 onwards, a new role may be quickly created by making a copy of an existing role.&lt;br /&gt;
&lt;br /&gt;
To create a duplicate role:&lt;br /&gt;
#Click on Permissions in the Site Administration block, then Define roles. &lt;br /&gt;
#Click on the role to be duplicated, for example &amp;quot;Guest&amp;quot;.&lt;br /&gt;
#Click the &amp;quot;Duplicate role&amp;quot; button near the top of the &amp;quot;View role details&amp;quot; page.&lt;br /&gt;
#Answer Yes to the question &amp;quot;Are you sure you want to duplicate the role ...?&amp;quot;&lt;br /&gt;
#The list of roles will now show the &amp;quot;... copy 1&amp;quot; at the bottom, for example &amp;quot;Guest copy 1&amp;quot;.   &lt;br /&gt;
#Edit the duplicated role to meet your needs.&lt;br /&gt;
&lt;br /&gt;
==Permissions==&lt;br /&gt;
&lt;br /&gt;
There are four settings for each capability:&lt;br /&gt;
&lt;br /&gt;
;Not Set&lt;br /&gt;
:This is the default value for all permissions when a new role is created.&lt;br /&gt;
&lt;br /&gt;
;Allow&lt;br /&gt;
:By choosing this you are granting permission for this capability to people who are assigned this role. This permission applies for the context that this role gets assigned plus all &amp;quot;lower&amp;quot; contexts. For example, if this role is a student role assigned to a course, then students will be able to &amp;quot;start new discussions&amp;quot; in all forums in that course, unless some forum contains an override or a new assignment with a Prevent or Prohibit value for this capability.&lt;br /&gt;
&lt;br /&gt;
;Prevent&lt;br /&gt;
:By choosing this you are removing permission for this capability, even if the users with this role were allowed that permission in a higher context.&lt;br /&gt;
&lt;br /&gt;
;Prohibit&lt;br /&gt;
:This is rarely needed, but occasionally you might want to completely deny permissions to a role in a way that can NOT be overridden at any lower context. An example of when you might need this is when an admin wants to prohibit one person from starting new discussions in any forum on the whole site. In this case they can create a role with that capability set to &amp;quot;Prohibit&amp;quot; and then assign it to that user in the system context.&lt;br /&gt;
&lt;br /&gt;
==Legacy role types==&lt;br /&gt;
&lt;br /&gt;
* Legacy role types were implemented for backward compatibility.&lt;br /&gt;
* Selecting a legacy role type in 1.8 (or allowing a legacy capability in 1.7) does NOT provide a new role with all capabilities of a pre-Moodle 1.7 role.&lt;br /&gt;
*It is recommended that a legacy role type is selected only for roles that are similar to pre-Moodle 1.7 student/teacher/admin/creator roles. &lt;br /&gt;
* It is not necessary to select a legacy role type unless using old 3rd party code that was not designed for Moodle 1.7 and doesn&#039;t yet support roles.&lt;br /&gt;
&lt;br /&gt;
==New role considerations==&lt;br /&gt;
&lt;br /&gt;
A newly-created role does not have the ability to assign or override any other roles. This is true even when the new role is a copy of a role that had such abilities.  If such ability is needed, the administrator must grant it explicitly (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Define roles -&amp;gt;  Allow role assignments and Allow role overrides tab).&lt;br /&gt;
&lt;br /&gt;
A new role is not automatically listed in course descriptions even if was created by copying a role that is listed, such as [[Teacher]]. If you want the new role to appear in the course listing, you must set it explicitly via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; [[Course managers]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Testing a new role==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.9 and later, you can use the &amp;quot;Switch roles to...&amp;quot; menu in the upper right corner of each course page to test the new role.  Since switching roles confines you to those roles you can assign in a course context, this method is only useful for testing course-scoped capabilities (i.e., it will not be useful for testing permissions that apply outside the course context, like moodle/user:edit).&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.7.x and 1.8.x role changes take effect only after the next login from that user, so new roles may not be tested using the &amp;quot;Switch role to...&amp;quot; feature.&lt;br /&gt;
&lt;br /&gt;
In any version of Moodle with roles, you can always create test user and assign the new role to them.  Then logout as admin and login as the test user.&lt;br /&gt;
&lt;br /&gt;
==Example roles==&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Keyholder role]] - for setting the person named as holding a course [[Enrolment key|enrolment key]]&lt;br /&gt;
*[[Calendar editor role]] - for enabling a user to add site events to the calendar&lt;br /&gt;
*[[Blogger role]] - for limiting blogging to specific users only&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=66782 What happens if a user has multiple roles in a course?]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=90140 logged in: what role am I?]&lt;br /&gt;
* [[How_permissions_are_calculated | How permissions are calculated ]]&lt;br /&gt;
* [[The_rolesdebug.php_roles_debugging_script | The rolesdebug.php role debugging script]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
[[es:Gestionar_roles]]&lt;br /&gt;
[[eu:Rolak_kudeatu]]&lt;br /&gt;
[[fr:Définir les rôles]]&lt;br /&gt;
[[ja:ロールの管理]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Managing_roles&amp;diff=34147</id>
		<title>Managing roles</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Managing_roles&amp;diff=34147"/>
		<updated>2008-03-28T16:34:29Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* New role considerations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
Location: &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The define roles page has three tabs, for managing roles, [[Allow role assignments|allowing role assignments]] and [[Allow role overrides|allowing role overrides]].&lt;br /&gt;
&lt;br /&gt;
The manage roles tab contains a list of roles on your site. The edit column contains icons for editing and deleting roles, and for moving them up or down in the list (affecting the way that roles are listed around Moodle).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Predefined roles==&lt;br /&gt;
Moodle comes with 7 predefined roles:&lt;br /&gt;
*[[Administrator role|Administrator]]&lt;br /&gt;
*[[Course creator role|Course creator]]&lt;br /&gt;
*[[Teacher role|Teacher]]&lt;br /&gt;
*[[Teacher role| Non-editing teacher]]&lt;br /&gt;
*[[Student role|Student]]&lt;br /&gt;
*[[Guest role|Guest]]&lt;br /&gt;
*[[Authenticated user role|Authenticated user]] (from 1.8 onwards)&lt;br /&gt;
&lt;br /&gt;
==Editing a role==&lt;br /&gt;
[[Image:manage roles.png|thumb|Managing roles]]&lt;br /&gt;
To edit a role:&lt;br /&gt;
#Click on Permissions in the Site Administration block, then Define roles.&lt;br /&gt;
#Click the edit icon opposite the role you want to edit e.g. student.&lt;br /&gt;
#On the edit role page, change permissions as required.&lt;br /&gt;
#Scroll to the bottom of the page and click the &amp;quot;Save changes&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
==Adding a new role==&lt;br /&gt;
&lt;br /&gt;
To add a new role:&lt;br /&gt;
#Click on Permissions in the Site Administration block, then Define roles.&lt;br /&gt;
#Click the &amp;quot;Add a new role&amp;quot; button.&lt;br /&gt;
#On the add a new role page, give the role a name. If you need to name the role for multiple languages you can use [[Multi language content|multi-lang syntax]] if you wish, such as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;en&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Teacher&amp;lt;/span&amp;gt; &amp;lt;span lang=&amp;quot;es_es&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Profesor&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. If multi-lang syntax is used then &#039;&#039;Filter all strings&#039;&#039; should be set in [[Filter settings]].&lt;br /&gt;
#Give the role a meaningful short name. The short name is necessary for other plugins in Moodle that may need to refer to the role (e.g. when uploading users from a file or setting enrolments via an enrolment plugin).&lt;br /&gt;
#Give the role a description (optional).&lt;br /&gt;
#Set permissions as required.&lt;br /&gt;
#Scroll to the bottom of the page and click the &amp;quot;Add a new role&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
==Creating a duplicate role==&lt;br /&gt;
{{Moodle 1.8}}In Moodle 1.8 onwards, a new role may be quickly created by making a copy of an existing role.&lt;br /&gt;
&lt;br /&gt;
To create a duplicate role:&lt;br /&gt;
#Click on Permissions in the Site Administration block, then Define roles. &lt;br /&gt;
#Click on the role to be duplicated, for example &amp;quot;Guest&amp;quot;.&lt;br /&gt;
#Click the &amp;quot;Duplicate role&amp;quot; button near the top of the &amp;quot;View role details&amp;quot; page.&lt;br /&gt;
#Answer Yes to the question &amp;quot;Are you sure you want to duplicate the role ...?&amp;quot;&lt;br /&gt;
#The list of roles will now show the &amp;quot;... copy 1&amp;quot; at the bottom, for example &amp;quot;Guest copy 1&amp;quot;.   &lt;br /&gt;
#Edit the duplicated role to meet your needs.&lt;br /&gt;
&lt;br /&gt;
==Permissions==&lt;br /&gt;
&lt;br /&gt;
There are four settings for each capability:&lt;br /&gt;
&lt;br /&gt;
;Not Set&lt;br /&gt;
:This is the default value for all permissions when a new role is created.&lt;br /&gt;
&lt;br /&gt;
;Allow&lt;br /&gt;
:By choosing this you are granting permission for this capability to people who are assigned this role. This permission applies for the context that this role gets assigned plus all &amp;quot;lower&amp;quot; contexts. For example, if this role is a student role assigned to a course, then students will be able to &amp;quot;start new discussions&amp;quot; in all forums in that course, unless some forum contains an override or a new assignment with a Prevent or Prohibit value for this capability.&lt;br /&gt;
&lt;br /&gt;
;Prevent&lt;br /&gt;
:By choosing this you are removing permission for this capability, even if the users with this role were allowed that permission in a higher context.&lt;br /&gt;
&lt;br /&gt;
;Prohibit&lt;br /&gt;
:This is rarely needed, but occasionally you might want to completely deny permissions to a role in a way that can NOT be overridden at any lower context. An example of when you might need this is when an admin wants to prohibit one person from starting new discussions in any forum on the whole site. In this case they can create a role with that capability set to &amp;quot;Prohibit&amp;quot; and then assign it to that user in the system context.&lt;br /&gt;
&lt;br /&gt;
==Legacy role types==&lt;br /&gt;
&lt;br /&gt;
* Legacy role types were implemented for backward compatibility.&lt;br /&gt;
* Selecting a legacy role type in 1.8 (or allowing a legacy capability in 1.7) does NOT provide a new role with all capabilities of a pre-Moodle 1.7 role.&lt;br /&gt;
*It is recommended that a legacy role type is selected only for roles that are similar to pre-Moodle 1.7 student/teacher/admin/creator roles. &lt;br /&gt;
* It is not necessary to select a legacy role type unless using old 3rd party code that was not designed for Moodle 1.7 and doesn&#039;t yet support roles.&lt;br /&gt;
&lt;br /&gt;
==New role considerations==&lt;br /&gt;
&lt;br /&gt;
A newly-created role does not have the ability to assign or override any other roles. This is true even when the new role is a copy of a role that had such abilities.  If such ability is needed, the administrator must grant it explicitly (Site administration -&amp;gt; Users -&amp;gt; Permissions -&amp;gt; Define roles -&amp;gt;  Allow role assignments and Allow role overrides tab).&lt;br /&gt;
&lt;br /&gt;
A new role is not automatically listed in course descriptions even if was created by copying a role that is listed, such as [[Teacher]]. If you want the new role to appear in the course listing, you must set it explicitly via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; [[Course managers]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Testing a new role==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.9 and later, you can use the &amp;quot;Switch roles to...&amp;quot; menu in the upper right corner of each course page to test the new role.  Since switching roles confines you to those roles you can assign in a course context, this method is only useful for testing course-scoped capabilities (i.e., it will not be useful for testing permissions that apply outside the course context, like moodle/user:edit).&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.7.x and 1.8.x role changes take effect only after the next login from that user, so new roles may not be tested using the &amp;quot;Switch role to...&amp;quot; feature.&lt;br /&gt;
&lt;br /&gt;
In any version of Moodle with roles, you can always create test user and assign the new role to them.  Then logout as admin and login as the test user.&lt;br /&gt;
&lt;br /&gt;
==Example roles==&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Keyholder role]] - for setting the person named as holding a course [[Enrolment key|enrolment key]]&lt;br /&gt;
*[[Calendar editor role]] - for enabling a user to add site events to the calendar&lt;br /&gt;
*[[Blogger role]] - for limiting blogging to specific users only&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=66782 What happens if a user has multiple roles in a course?]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=90140 logged in: what role am I?]&lt;br /&gt;
* [[How_permissions_are_calculated | How permissions are calculated ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
[[es:Gestionar_roles]]&lt;br /&gt;
[[eu:Rolak_kudeatu]]&lt;br /&gt;
[[fr:Définir les rôles]]&lt;br /&gt;
[[ja:ロールの管理]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Managing_roles&amp;diff=34146</id>
		<title>Managing roles</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Managing_roles&amp;diff=34146"/>
		<updated>2008-03-28T16:04:46Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* Testing a new role */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
Location: &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The define roles page has three tabs, for managing roles, [[Allow role assignments|allowing role assignments]] and [[Allow role overrides|allowing role overrides]].&lt;br /&gt;
&lt;br /&gt;
The manage roles tab contains a list of roles on your site. The edit column contains icons for editing and deleting roles, and for moving them up or down in the list (affecting the way that roles are listed around Moodle).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Predefined roles==&lt;br /&gt;
Moodle comes with 7 predefined roles:&lt;br /&gt;
*[[Administrator role|Administrator]]&lt;br /&gt;
*[[Course creator role|Course creator]]&lt;br /&gt;
*[[Teacher role|Teacher]]&lt;br /&gt;
*[[Teacher role| Non-editing teacher]]&lt;br /&gt;
*[[Student role|Student]]&lt;br /&gt;
*[[Guest role|Guest]]&lt;br /&gt;
*[[Authenticated user role|Authenticated user]] (from 1.8 onwards)&lt;br /&gt;
&lt;br /&gt;
==Editing a role==&lt;br /&gt;
[[Image:manage roles.png|thumb|Managing roles]]&lt;br /&gt;
To edit a role:&lt;br /&gt;
#Click on Permissions in the Site Administration block, then Define roles.&lt;br /&gt;
#Click the edit icon opposite the role you want to edit e.g. student.&lt;br /&gt;
#On the edit role page, change permissions as required.&lt;br /&gt;
#Scroll to the bottom of the page and click the &amp;quot;Save changes&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
==Adding a new role==&lt;br /&gt;
&lt;br /&gt;
To add a new role:&lt;br /&gt;
#Click on Permissions in the Site Administration block, then Define roles.&lt;br /&gt;
#Click the &amp;quot;Add a new role&amp;quot; button.&lt;br /&gt;
#On the add a new role page, give the role a name. If you need to name the role for multiple languages you can use [[Multi language content|multi-lang syntax]] if you wish, such as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;en&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Teacher&amp;lt;/span&amp;gt; &amp;lt;span lang=&amp;quot;es_es&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Profesor&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. If multi-lang syntax is used then &#039;&#039;Filter all strings&#039;&#039; should be set in [[Filter settings]].&lt;br /&gt;
#Give the role a meaningful short name. The short name is necessary for other plugins in Moodle that may need to refer to the role (e.g. when uploading users from a file or setting enrolments via an enrolment plugin).&lt;br /&gt;
#Give the role a description (optional).&lt;br /&gt;
#Set permissions as required.&lt;br /&gt;
#Scroll to the bottom of the page and click the &amp;quot;Add a new role&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
==Creating a duplicate role==&lt;br /&gt;
{{Moodle 1.8}}In Moodle 1.8 onwards, a new role may be quickly created by making a copy of an existing role.&lt;br /&gt;
&lt;br /&gt;
To create a duplicate role:&lt;br /&gt;
#Click on Permissions in the Site Administration block, then Define roles. &lt;br /&gt;
#Click on the role to be duplicated, for example &amp;quot;Guest&amp;quot;.&lt;br /&gt;
#Click the &amp;quot;Duplicate role&amp;quot; button near the top of the &amp;quot;View role details&amp;quot; page.&lt;br /&gt;
#Answer Yes to the question &amp;quot;Are you sure you want to duplicate the role ...?&amp;quot;&lt;br /&gt;
#The list of roles will now show the &amp;quot;... copy 1&amp;quot; at the bottom, for example &amp;quot;Guest copy 1&amp;quot;.   &lt;br /&gt;
#Edit the duplicated role to meet your needs.&lt;br /&gt;
&lt;br /&gt;
==Permissions==&lt;br /&gt;
&lt;br /&gt;
There are four settings for each capability:&lt;br /&gt;
&lt;br /&gt;
;Not Set&lt;br /&gt;
:This is the default value for all permissions when a new role is created.&lt;br /&gt;
&lt;br /&gt;
;Allow&lt;br /&gt;
:By choosing this you are granting permission for this capability to people who are assigned this role. This permission applies for the context that this role gets assigned plus all &amp;quot;lower&amp;quot; contexts. For example, if this role is a student role assigned to a course, then students will be able to &amp;quot;start new discussions&amp;quot; in all forums in that course, unless some forum contains an override or a new assignment with a Prevent or Prohibit value for this capability.&lt;br /&gt;
&lt;br /&gt;
;Prevent&lt;br /&gt;
:By choosing this you are removing permission for this capability, even if the users with this role were allowed that permission in a higher context.&lt;br /&gt;
&lt;br /&gt;
;Prohibit&lt;br /&gt;
:This is rarely needed, but occasionally you might want to completely deny permissions to a role in a way that can NOT be overridden at any lower context. An example of when you might need this is when an admin wants to prohibit one person from starting new discussions in any forum on the whole site. In this case they can create a role with that capability set to &amp;quot;Prohibit&amp;quot; and then assign it to that user in the system context.&lt;br /&gt;
&lt;br /&gt;
==Legacy role types==&lt;br /&gt;
&lt;br /&gt;
* Legacy role types were implemented for backward compatibility.&lt;br /&gt;
* Selecting a legacy role type in 1.8 (or allowing a legacy capability in 1.7) does NOT provide a new role with all capabilities of a pre-Moodle 1.7 role.&lt;br /&gt;
*It is recommended that a legacy role type is selected only for roles that are similar to pre-Moodle 1.7 student/teacher/admin/creator roles. &lt;br /&gt;
* It is not necessary to select a legacy role type unless using old 3rd party code that was not designed for Moodle 1.7 and doesn&#039;t yet support roles.&lt;br /&gt;
&lt;br /&gt;
==New role considerations==&lt;br /&gt;
&lt;br /&gt;
A newly created or copied role does not have the ability to override or assign any other roles. You should consider if you need to allow the role such rights.&lt;br /&gt;
&lt;br /&gt;
New roles will not by default be listed in course descriptions (even if copied from a role that already is, such as the [[Teacher]] role). This is set via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; [[Course managers]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Testing a new role==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.9 and later, you can use the &amp;quot;Switch roles to...&amp;quot; menu in the upper right corner of each course page to test the new role.  Since switching roles confines you to those roles you can assign in a course context, this method is only useful for testing course-scoped capabilities (i.e., it will not be useful for testing permissions that apply outside the course context, like moodle/user:edit).&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.7.x and 1.8.x role changes take effect only after the next login from that user, so new roles may not be tested using the &amp;quot;Switch role to...&amp;quot; feature.&lt;br /&gt;
&lt;br /&gt;
In any version of Moodle with roles, you can always create test user and assign the new role to them.  Then logout as admin and login as the test user.&lt;br /&gt;
&lt;br /&gt;
==Example roles==&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Keyholder role]] - for setting the person named as holding a course [[Enrolment key|enrolment key]]&lt;br /&gt;
*[[Calendar editor role]] - for enabling a user to add site events to the calendar&lt;br /&gt;
*[[Blogger role]] - for limiting blogging to specific users only&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=66782 What happens if a user has multiple roles in a course?]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=90140 logged in: what role am I?]&lt;br /&gt;
* [[How_permissions_are_calculated | How permissions are calculated ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
[[es:Gestionar_roles]]&lt;br /&gt;
[[eu:Rolak_kudeatu]]&lt;br /&gt;
[[fr:Définir les rôles]]&lt;br /&gt;
[[ja:ロールの管理]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=34145</id>
		<title>Roles FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=34145"/>
		<updated>2008-03-28T15:47:27Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* Why isn&amp;#039;t my role change taking effect? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
&lt;br /&gt;
==What is the definition of a...==&lt;br /&gt;
&lt;br /&gt;
;Role&lt;br /&gt;
:An identifier of the user&#039;s status in some context, for example Teacher, Student and Forum moderator&lt;br /&gt;
;Capability&lt;br /&gt;
:A description of a particular Moodle feature, for example [[Capabilities/moodle/blog:create|moodle/blog:create]]&lt;br /&gt;
;Permission&lt;br /&gt;
:A setting for a capability - inherit, allow, prevent or prohibit&lt;br /&gt;
;Context&lt;br /&gt;
:A &amp;quot;space&amp;quot; in Moodle, such as courses, activity modules or blocks&lt;br /&gt;
&lt;br /&gt;
==Why isn&#039;t my role change taking effect?==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.7.x and 1.8.x, role assignments and overrides do not take effect immediately.  They are delayed until the next time the user logs in.  Starting with Moodle 1.9, explicit role assignments and overrides take effect immediately. However role assignments resulting from changes to certain user policies (for example, changing the default front page role) may be delayed until the next login.&lt;br /&gt;
&lt;br /&gt;
If you are testing a new role, [[Manage_roles#Testing_a_new_role | here are some suggestions]].&lt;br /&gt;
&lt;br /&gt;
Also, please check the context in which the role is assigned. Certain capabilities e.g. [[Capabilities/moodle/user:update|moodle/user:update]] may only be applied in the system context, so assigning a role in the course context will result in the role change not taking effect.&lt;br /&gt;
&lt;br /&gt;
==Why are participants being added automatically when a new course is created?==&lt;br /&gt;
&lt;br /&gt;
If a user is assigned a system role or a role in the course category context then the user has this role in ALL courses in that context. Thus users who are students or teachers at the category level appear as course participants in all courses in that category.&lt;br /&gt;
&lt;br /&gt;
Please check &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039; and also the Assign roles link in course categories page and unassign users as necessary.&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
*Users are assigned the role of student in the site/system context rather than the course context (see FAQ above)&lt;br /&gt;
Or&lt;br /&gt;
*The default role for all users in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to Student rather than Authenticated user (Moodle 1.8 onwards).&lt;br /&gt;
&lt;br /&gt;
==Why are there differences in the users listed as course participants and users assigned roles in a course?==&lt;br /&gt;
&lt;br /&gt;
Users assigned roles in a higher context, for example users assigned the role of teacher in a course category context, may appear as course participants. The discussion [http://moodle.org/mod/forum/discuss.php?d=59900 Discrepancies between Assign Roles lists and Participants list] contains a longer explanation. &lt;br /&gt;
&lt;br /&gt;
==How can I prevent administrators being listed as course participants?==&lt;br /&gt;
&lt;br /&gt;
Ensure that administrators are not assigned another role in addition to their admin role.&lt;br /&gt;
&lt;br /&gt;
==Why are hidden assignments still visible?==&lt;br /&gt;
&lt;br /&gt;
Hidden assignments are not hidden from admins or teachers i.e. users with the [[Capabilities/moodle/role:viewhiddenassigns|viewhiddenassigns capability]].&lt;br /&gt;
&lt;br /&gt;
==Where are permissions inherited from?==&lt;br /&gt;
&lt;br /&gt;
Permissions are inherited from a role assigned in a higher-level context which has permissions set to allow for particular capabilities. If permission is never allowed/not set in any context (in particular, if you are creating or editing a role at the site level), then a user will have no permission for that capability.&lt;br /&gt;
&lt;br /&gt;
For example, the Student role has permission not set for the change site configuration capability. The permission is never allowed in any context so users assigned the role of Student cannot change the site configuration.&lt;br /&gt;
&lt;br /&gt;
==What is my role here?==&lt;br /&gt;
&lt;br /&gt;
This is a frequently asked question, but an improper one.  The correct question is &amp;quot;What are my &#039;&#039;permissions&#039;&#039; here?&amp;quot;  In any given context, you often have two or more roles.  In addition, one or more role overrides may be in effect.  Your permissions in a given context are a result of &amp;quot;adding&amp;quot; the individual permissions from these roles and overrides according to certain rules.  As Tim Hunt writes in [http://moodle.org/mod/forum/discuss.php?d=90140 this discussion], the rules &amp;quot;normally do what you expect.&amp;quot;  However when permissions conflict, the results can be surprising, and it pays to understand the [[rules for adding permissions]].&lt;br /&gt;
&lt;br /&gt;
==How do I debug a roles-related problem?==&lt;br /&gt;
&lt;br /&gt;
If you&#039;re having a problem that you suspect is related to roles, consider using [[The rolesdebug.php roles debugging script | the rolesdebug.php roles debugging script]].  You can download it from the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=1204 Modules and plugins database].  The script gives you a spatial view of your role assignments and overrides in a given context, and analyzes your permissions there.  To interpret the output requires a basic understanding of roles and capabilities.  If you are a complete roles novice, run the script and post the output to the [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities Forum].&lt;br /&gt;
&lt;br /&gt;
==Are there any differences in Roles in Moodle 1.7 and 1.8?==&lt;br /&gt;
&lt;br /&gt;
In addition to many Roles fixes and refinements (see the list of [http://tracker.moodle.org/secure/IssueNavigator.jspa?mode=hide&amp;amp;requestId=10221 Roles improvements] in the Tracker), in Moodle 1.8 the &#039;&#039;system&#039;&#039; context is separated from the &#039;&#039;front page&#039;&#039; context. Roles may be assigned in the front page context via &#039;&#039;Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Duplicate role&amp;quot; button has been added in Moodle 1.8, which makes creating new roles based on predefined roles much quicker.&lt;br /&gt;
&lt;br /&gt;
==How do I change the name for &amp;quot;teacher&amp;quot; in the course description?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
* Edit the role of Teacher via &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; and rename it. The new name will apply site-wide.&lt;br /&gt;
Or&lt;br /&gt;
* Create a duplicate teacher role with an alternative name and assign users the duplicate teacher role as appropriate in the course context. In &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Course manager&#039;&#039; select the alternative name for teacher that you wish to be displayed in the course description.&lt;br /&gt;
Or&lt;br /&gt;
* One more way to do it in 1.8 is to create new &amp;quot;dummy&amp;quot; roles (no capabilities) with those names and assign them to teachers along with the real roles. In the course manager settings you can choose which roles display on the front page under each course. (The feature request [http://tracker.moodle.org/browse/MDL-9182 Ability to assign or display custom title for role of person in course] contains this further method.)&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}From Moodle 1.9 onwards, names for different roles in a course may be changed in the [[Course settings|course settings]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to set role overrides?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Edit the teacher role and change the capability [[Capabilities/moodle/role:override|moodle/role:override]] to allow.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
#Click the tab &amp;quot;Allow role overrides&amp;quot; (in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;).&lt;br /&gt;
#Check the appropriate box to allow a teacher to override the student role.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to assign other teachers in a course?==&lt;br /&gt;
&lt;br /&gt;
This is disabled by default but it can be switched on by modifying the teacher&#039;s role. In &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; select the &amp;quot;Allow role assignments&amp;quot; tab and tick the checkbox where Teacher and Teacher intersect.&lt;br /&gt;
&lt;br /&gt;
==Why doesn&#039;t &amp;quot;Switch role to..&amp;quot; within a course seem to work properly for a course creator?==&lt;br /&gt;
&lt;br /&gt;
This feature is intended for teachers so that they can see how their course appears for students. It doesn&#039;t work reliably outside the course.&lt;br /&gt;
&lt;br /&gt;
Further information about this feature can be found in [[Switch roles]] and the paragraph on testing a new role in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
==Are there any example roles?==&lt;br /&gt;
&lt;br /&gt;
Yes, as follows:&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Keyholder role]] - for setting the person named as holding a course [[Enrolment key|enrolment key]]&lt;br /&gt;
*[[Calendar editor role|Calendar editor]] - for providing a user with permission to add site events to the calendar&lt;br /&gt;
*[[Blogger role]] - for limiting blogging to specific users only&lt;br /&gt;
&lt;br /&gt;
==Logged-in users can&#039;t read the site news. What can I do?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Scroll down to &#039;&#039;&#039;Forum&#039;&#039;&#039;&lt;br /&gt;
#Change the capability [[Capabilities/mod/forum:viewdiscussion|mod/forum:viewdiscussion]] to &#039;&#039;allow&#039;&#039;&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
==How do I enable logged-in users to participate in front page activities?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Change capabilities to &#039;&#039;allow&#039;&#039; for all required activities e.g. record a choice, reply to posts&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Note that for this to work, you need to make the default role for all users &amp;quot;authenticated user&amp;quot;. This is the default for new versions of Moodle. In older versions, the default setting is guest, so if you have recently upgraded, you may have to change this setting. You can change the setting via &#039;&#039;Site Administration &amp;gt; Permissions &amp;gt; User Policies&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Click on Student&lt;br /&gt;
#Select all users in the potential users list, and use the left-facing arrow button to add them to the existing users list&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ_roles]]&lt;br /&gt;
[[fr:FAQ des rôles]]&lt;br /&gt;
[[ja:ロールFAQ]]&lt;br /&gt;
[[ru:FAQ по ролям]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=34144</id>
		<title>Roles FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=34144"/>
		<updated>2008-03-28T15:44:46Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* Why isn&amp;#039;t my role change taking effect? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
&lt;br /&gt;
==What is the definition of a...==&lt;br /&gt;
&lt;br /&gt;
;Role&lt;br /&gt;
:An identifier of the user&#039;s status in some context, for example Teacher, Student and Forum moderator&lt;br /&gt;
;Capability&lt;br /&gt;
:A description of a particular Moodle feature, for example [[Capabilities/moodle/blog:create|moodle/blog:create]]&lt;br /&gt;
;Permission&lt;br /&gt;
:A setting for a capability - inherit, allow, prevent or prohibit&lt;br /&gt;
;Context&lt;br /&gt;
:A &amp;quot;space&amp;quot; in Moodle, such as courses, activity modules or blocks&lt;br /&gt;
&lt;br /&gt;
==Why isn&#039;t my role change taking effect?==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.7.x and 1.8.x, role assignments and overrides do not take effect immediately.  They are delayed until the next time the user logs in.  Starting with Moodle 1.9, explicit role assignments and overrides take effect immediately. However role assignments resulting from changes to certain user policies (for example, changing the default front page role) may be delayed until the next login.&lt;br /&gt;
&lt;br /&gt;
If you are testing new roles, please refer to the information in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
Also, please check the context in which the role is assigned. Certain capabilities e.g. [[Capabilities/moodle/user:update|moodle/user:update]] may only be applied in the system context, so assigning a role in the course context will result in the role change not taking effect.&lt;br /&gt;
&lt;br /&gt;
==Why are participants being added automatically when a new course is created?==&lt;br /&gt;
&lt;br /&gt;
If a user is assigned a system role or a role in the course category context then the user has this role in ALL courses in that context. Thus users who are students or teachers at the category level appear as course participants in all courses in that category.&lt;br /&gt;
&lt;br /&gt;
Please check &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039; and also the Assign roles link in course categories page and unassign users as necessary.&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
*Users are assigned the role of student in the site/system context rather than the course context (see FAQ above)&lt;br /&gt;
Or&lt;br /&gt;
*The default role for all users in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to Student rather than Authenticated user (Moodle 1.8 onwards).&lt;br /&gt;
&lt;br /&gt;
==Why are there differences in the users listed as course participants and users assigned roles in a course?==&lt;br /&gt;
&lt;br /&gt;
Users assigned roles in a higher context, for example users assigned the role of teacher in a course category context, may appear as course participants. The discussion [http://moodle.org/mod/forum/discuss.php?d=59900 Discrepancies between Assign Roles lists and Participants list] contains a longer explanation. &lt;br /&gt;
&lt;br /&gt;
==How can I prevent administrators being listed as course participants?==&lt;br /&gt;
&lt;br /&gt;
Ensure that administrators are not assigned another role in addition to their admin role.&lt;br /&gt;
&lt;br /&gt;
==Why are hidden assignments still visible?==&lt;br /&gt;
&lt;br /&gt;
Hidden assignments are not hidden from admins or teachers i.e. users with the [[Capabilities/moodle/role:viewhiddenassigns|viewhiddenassigns capability]].&lt;br /&gt;
&lt;br /&gt;
==Where are permissions inherited from?==&lt;br /&gt;
&lt;br /&gt;
Permissions are inherited from a role assigned in a higher-level context which has permissions set to allow for particular capabilities. If permission is never allowed/not set in any context (in particular, if you are creating or editing a role at the site level), then a user will have no permission for that capability.&lt;br /&gt;
&lt;br /&gt;
For example, the Student role has permission not set for the change site configuration capability. The permission is never allowed in any context so users assigned the role of Student cannot change the site configuration.&lt;br /&gt;
&lt;br /&gt;
==What is my role here?==&lt;br /&gt;
&lt;br /&gt;
This is a frequently asked question, but an improper one.  The correct question is &amp;quot;What are my &#039;&#039;permissions&#039;&#039; here?&amp;quot;  In any given context, you often have two or more roles.  In addition, one or more role overrides may be in effect.  Your permissions in a given context are a result of &amp;quot;adding&amp;quot; the individual permissions from these roles and overrides according to certain rules.  As Tim Hunt writes in [http://moodle.org/mod/forum/discuss.php?d=90140 this discussion], the rules &amp;quot;normally do what you expect.&amp;quot;  However when permissions conflict, the results can be surprising, and it pays to understand the [[rules for adding permissions]].&lt;br /&gt;
&lt;br /&gt;
==How do I debug a roles-related problem?==&lt;br /&gt;
&lt;br /&gt;
If you&#039;re having a problem that you suspect is related to roles, consider using [[The rolesdebug.php roles debugging script | the rolesdebug.php roles debugging script]].  You can download it from the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=1204 Modules and plugins database].  The script gives you a spatial view of your role assignments and overrides in a given context, and analyzes your permissions there.  To interpret the output requires a basic understanding of roles and capabilities.  If you are a complete roles novice, run the script and post the output to the [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities Forum].&lt;br /&gt;
&lt;br /&gt;
==Are there any differences in Roles in Moodle 1.7 and 1.8?==&lt;br /&gt;
&lt;br /&gt;
In addition to many Roles fixes and refinements (see the list of [http://tracker.moodle.org/secure/IssueNavigator.jspa?mode=hide&amp;amp;requestId=10221 Roles improvements] in the Tracker), in Moodle 1.8 the &#039;&#039;system&#039;&#039; context is separated from the &#039;&#039;front page&#039;&#039; context. Roles may be assigned in the front page context via &#039;&#039;Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Duplicate role&amp;quot; button has been added in Moodle 1.8, which makes creating new roles based on predefined roles much quicker.&lt;br /&gt;
&lt;br /&gt;
==How do I change the name for &amp;quot;teacher&amp;quot; in the course description?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
* Edit the role of Teacher via &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; and rename it. The new name will apply site-wide.&lt;br /&gt;
Or&lt;br /&gt;
* Create a duplicate teacher role with an alternative name and assign users the duplicate teacher role as appropriate in the course context. In &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Course manager&#039;&#039; select the alternative name for teacher that you wish to be displayed in the course description.&lt;br /&gt;
Or&lt;br /&gt;
* One more way to do it in 1.8 is to create new &amp;quot;dummy&amp;quot; roles (no capabilities) with those names and assign them to teachers along with the real roles. In the course manager settings you can choose which roles display on the front page under each course. (The feature request [http://tracker.moodle.org/browse/MDL-9182 Ability to assign or display custom title for role of person in course] contains this further method.)&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}From Moodle 1.9 onwards, names for different roles in a course may be changed in the [[Course settings|course settings]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to set role overrides?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Edit the teacher role and change the capability [[Capabilities/moodle/role:override|moodle/role:override]] to allow.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
#Click the tab &amp;quot;Allow role overrides&amp;quot; (in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;).&lt;br /&gt;
#Check the appropriate box to allow a teacher to override the student role.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to assign other teachers in a course?==&lt;br /&gt;
&lt;br /&gt;
This is disabled by default but it can be switched on by modifying the teacher&#039;s role. In &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; select the &amp;quot;Allow role assignments&amp;quot; tab and tick the checkbox where Teacher and Teacher intersect.&lt;br /&gt;
&lt;br /&gt;
==Why doesn&#039;t &amp;quot;Switch role to..&amp;quot; within a course seem to work properly for a course creator?==&lt;br /&gt;
&lt;br /&gt;
This feature is intended for teachers so that they can see how their course appears for students. It doesn&#039;t work reliably outside the course.&lt;br /&gt;
&lt;br /&gt;
Further information about this feature can be found in [[Switch roles]] and the paragraph on testing a new role in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
==Are there any example roles?==&lt;br /&gt;
&lt;br /&gt;
Yes, as follows:&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Keyholder role]] - for setting the person named as holding a course [[Enrolment key|enrolment key]]&lt;br /&gt;
*[[Calendar editor role|Calendar editor]] - for providing a user with permission to add site events to the calendar&lt;br /&gt;
*[[Blogger role]] - for limiting blogging to specific users only&lt;br /&gt;
&lt;br /&gt;
==Logged-in users can&#039;t read the site news. What can I do?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Scroll down to &#039;&#039;&#039;Forum&#039;&#039;&#039;&lt;br /&gt;
#Change the capability [[Capabilities/mod/forum:viewdiscussion|mod/forum:viewdiscussion]] to &#039;&#039;allow&#039;&#039;&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
==How do I enable logged-in users to participate in front page activities?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Change capabilities to &#039;&#039;allow&#039;&#039; for all required activities e.g. record a choice, reply to posts&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Note that for this to work, you need to make the default role for all users &amp;quot;authenticated user&amp;quot;. This is the default for new versions of Moodle. In older versions, the default setting is guest, so if you have recently upgraded, you may have to change this setting. You can change the setting via &#039;&#039;Site Administration &amp;gt; Permissions &amp;gt; User Policies&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Click on Student&lt;br /&gt;
#Select all users in the potential users list, and use the left-facing arrow button to add them to the existing users list&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ_roles]]&lt;br /&gt;
[[fr:FAQ des rôles]]&lt;br /&gt;
[[ja:ロールFAQ]]&lt;br /&gt;
[[ru:FAQ по ролям]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Managing_roles&amp;diff=34022</id>
		<title>Managing roles</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Managing_roles&amp;diff=34022"/>
		<updated>2008-03-26T15:58:05Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
Location: &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The define roles page has three tabs, for managing roles, [[Allow role assignments|allowing role assignments]] and [[Allow role overrides|allowing role overrides]].&lt;br /&gt;
&lt;br /&gt;
The manage roles tab contains a list of roles on your site. The edit column contains icons for editing and deleting roles, and for moving them up or down in the list (affecting the way that roles are listed around Moodle).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Predefined roles==&lt;br /&gt;
Moodle comes with 7 predefined roles:&lt;br /&gt;
*[[Administrator role|Administrator]]&lt;br /&gt;
*[[Course creator role|Course creator]]&lt;br /&gt;
*[[Teacher role|Teacher]]&lt;br /&gt;
*[[Teacher role| Non-editing teacher]]&lt;br /&gt;
*[[Student role|Student]]&lt;br /&gt;
*[[Guest role|Guest]]&lt;br /&gt;
*[[Authenticated user role|Authenticated user]] (from 1.8 onwards)&lt;br /&gt;
&lt;br /&gt;
==Editing a role==&lt;br /&gt;
[[Image:manage roles.png|thumb|Managing roles]]&lt;br /&gt;
To edit a role:&lt;br /&gt;
#Click on Permissions in the Site Administration block, then Define roles.&lt;br /&gt;
#Click the edit icon opposite the role you want to edit e.g. student.&lt;br /&gt;
#On the edit role page, change permissions as required.&lt;br /&gt;
#Scroll to the bottom of the page and click the &amp;quot;Save changes&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
==Adding a new role==&lt;br /&gt;
&lt;br /&gt;
To add a new role:&lt;br /&gt;
#Click on Permissions in the Site Administration block, then Define roles.&lt;br /&gt;
#Click the &amp;quot;Add a new role&amp;quot; button.&lt;br /&gt;
#On the add a new role page, give the role a name. If you need to name the role for multiple languages you can use [[Multi language content|multi-lang syntax]] if you wish, such as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;en&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Teacher&amp;lt;/span&amp;gt; &amp;lt;span lang=&amp;quot;es_es&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Profesor&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. If multi-lang syntax is used then &#039;&#039;Filter all strings&#039;&#039; should be set in [[Filter settings]].&lt;br /&gt;
#Give the role a meaningful short name. The short name is necessary for other plugins in Moodle that may need to refer to the role (e.g. when uploading users from a file or setting enrolments via an enrolment plugin).&lt;br /&gt;
#Give the role a description (optional).&lt;br /&gt;
#Set permissions as required.&lt;br /&gt;
#Scroll to the bottom of the page and click the &amp;quot;Add a new role&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
==Creating a duplicate role==&lt;br /&gt;
{{Moodle 1.8}}In Moodle 1.8 onwards, a new role may be quickly created by making a copy of an existing role.&lt;br /&gt;
&lt;br /&gt;
To create a duplicate role:&lt;br /&gt;
#Click on Permissions in the Site Administration block, then Define roles. &lt;br /&gt;
#Click on the role to be duplicated, for example &amp;quot;Guest&amp;quot;.&lt;br /&gt;
#Click the &amp;quot;Duplicate role&amp;quot; button near the top of the &amp;quot;View role details&amp;quot; page.&lt;br /&gt;
#Answer Yes to the question &amp;quot;Are you sure you want to duplicate the role ...?&amp;quot;&lt;br /&gt;
#The list of roles will now show the &amp;quot;... copy 1&amp;quot; at the bottom, for example &amp;quot;Guest copy 1&amp;quot;.   &lt;br /&gt;
#Edit the duplicated role to meet your needs.&lt;br /&gt;
&lt;br /&gt;
==Permissions==&lt;br /&gt;
&lt;br /&gt;
There are four settings for each capability:&lt;br /&gt;
&lt;br /&gt;
;Not Set&lt;br /&gt;
:This is the default value for all permissions when a new role is created.&lt;br /&gt;
&lt;br /&gt;
;Allow&lt;br /&gt;
:By choosing this you are granting permission for this capability to people who are assigned this role. This permission applies for the context that this role gets assigned plus all &amp;quot;lower&amp;quot; contexts. For example, if this role is a student role assigned to a course, then students will be able to &amp;quot;start new discussions&amp;quot; in all forums in that course, unless some forum contains an override or a new assignment with a Prevent or Prohibit value for this capability.&lt;br /&gt;
&lt;br /&gt;
;Prevent&lt;br /&gt;
:By choosing this you are removing permission for this capability, even if the users with this role were allowed that permission in a higher context.&lt;br /&gt;
&lt;br /&gt;
;Prohibit&lt;br /&gt;
:This is rarely needed, but occasionally you might want to completely deny permissions to a role in a way that can NOT be overridden at any lower context. An example of when you might need this is when an admin wants to prohibit one person from starting new discussions in any forum on the whole site. In this case they can create a role with that capability set to &amp;quot;Prohibit&amp;quot; and then assign it to that user in the system context.&lt;br /&gt;
&lt;br /&gt;
==Legacy role types==&lt;br /&gt;
&lt;br /&gt;
* Legacy role types were implemented for backward compatibility.&lt;br /&gt;
* Selecting a legacy role type in 1.8 (or allowing a legacy capability in 1.7) does NOT provide a new role with all capabilities of a pre-Moodle 1.7 role.&lt;br /&gt;
*It is recommended that a legacy role type is selected only for roles that are similar to pre-Moodle 1.7 student/teacher/admin/creator roles. &lt;br /&gt;
* It is not necessary to select a legacy role type unless using old 3rd party code that was not designed for Moodle 1.7 and doesn&#039;t yet support roles.&lt;br /&gt;
&lt;br /&gt;
==New role considerations==&lt;br /&gt;
&lt;br /&gt;
A newly created or copied role does not have the ability to override or assign any other roles. You should consider if you need to allow the role such rights.&lt;br /&gt;
&lt;br /&gt;
New roles will not by default be listed in course descriptions (even if copied from a role that already is, such as the [[Teacher]] role). This is set via &#039;&#039;Administration &amp;gt; Appearance &amp;gt; [[Course managers]]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Testing a new role==&lt;br /&gt;
&lt;br /&gt;
To test a new role:&lt;br /&gt;
#Create test user and assign new role to them.&lt;br /&gt;
#Either logout as admin and then login as test user or use a different browser to login as test user.&lt;br /&gt;
&lt;br /&gt;
Alternatively, use Switch roles to test the new role. This will only work with Moodle 1.9 and newer, and is only useful with course-scoped capabilities (ie: it will not be usable to test &#039;moodle/user:edit&#039;).&lt;br /&gt;
&lt;br /&gt;
Note: In Moodle 1.7.x and 1.8.x role changes only take effect after the next login from that user, so new roles may not be tested using the &amp;quot;Switch role to...&amp;quot; feature.&lt;br /&gt;
&lt;br /&gt;
==Example roles==&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Keyholder role]] - for setting the person named as holding a course [[Enrolment key|enrolment key]]&lt;br /&gt;
*[[Calendar editor role]] - for enabling a user to add site events to the calendar&lt;br /&gt;
*[[Blogger role]] - for limiting blogging to specific users only&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=66782 What happens if a user has multiple roles in a course?]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=90140 logged in: what role am I?]&lt;br /&gt;
* [[How_permissions_are_calculated | How permissions are calculated ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
&lt;br /&gt;
[[es:Gestionar_roles]]&lt;br /&gt;
[[eu:Rolak_kudeatu]]&lt;br /&gt;
[[fr:Définir les rôles]]&lt;br /&gt;
[[ja:ロールの管理]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=34021</id>
		<title>Roles FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=34021"/>
		<updated>2008-03-26T15:49:54Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* What is my role here? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
&lt;br /&gt;
==What is the definition of a...==&lt;br /&gt;
&lt;br /&gt;
;Role&lt;br /&gt;
:An identifier of the user&#039;s status in some context, for example Teacher, Student and Forum moderator&lt;br /&gt;
;Capability&lt;br /&gt;
:A description of a particular Moodle feature, for example [[Capabilities/moodle/blog:create|moodle/blog:create]]&lt;br /&gt;
;Permission&lt;br /&gt;
:A setting for a capability - inherit, allow, prevent or prohibit&lt;br /&gt;
;Context&lt;br /&gt;
:A &amp;quot;space&amp;quot; in Moodle, such as courses, activity modules or blocks&lt;br /&gt;
&lt;br /&gt;
==Why isn&#039;t my role change taking effect?==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.9 and newer role changes are immediate; in Moodle 1.7.x and 1.8.x role they are not, and will take effect after the next login from that user. Regarding testing new roles, please refer to the information in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
Also, please check the context in which the role is assigned. Certain capabilities e.g. [[Capabilities/moodle/user:update|moodle/user:update]] may only be applied in the system context, so assigning a role in the course context will result in the role change not taking effect.&lt;br /&gt;
&lt;br /&gt;
==Why are participants being added automatically when a new course is created?==&lt;br /&gt;
&lt;br /&gt;
If a user is assigned a system role or a role in the course category context then the user has this role in ALL courses in that context. Thus users who are students or teachers at the category level appear as course participants in all courses in that category.&lt;br /&gt;
&lt;br /&gt;
Please check &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039; and also the Assign roles link in course categories page and unassign users as necessary.&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
*Users are assigned the role of student in the site/system context rather than the course context (see FAQ above)&lt;br /&gt;
Or&lt;br /&gt;
*The default role for all users in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to Student rather than Authenticated user (Moodle 1.8 onwards).&lt;br /&gt;
&lt;br /&gt;
==Why are there differences in the users listed as course participants and users assigned roles in a course?==&lt;br /&gt;
&lt;br /&gt;
Users assigned roles in a higher context, for example users assigned the role of teacher in a course category context, may appear as course participants. The discussion [http://moodle.org/mod/forum/discuss.php?d=59900 Discrepancies between Assign Roles lists and Participants list] contains a longer explanation. &lt;br /&gt;
&lt;br /&gt;
==How can I prevent administrators being listed as course participants?==&lt;br /&gt;
&lt;br /&gt;
Ensure that administrators are not assigned another role in addition to their admin role.&lt;br /&gt;
&lt;br /&gt;
==Why are hidden assignments still visible?==&lt;br /&gt;
&lt;br /&gt;
Hidden assignments are not hidden from admins or teachers i.e. users with the [[Capabilities/moodle/role:viewhiddenassigns|viewhiddenassigns capability]].&lt;br /&gt;
&lt;br /&gt;
==Where are permissions inherited from?==&lt;br /&gt;
&lt;br /&gt;
Permissions are inherited from a role assigned in a higher-level context which has permissions set to allow for particular capabilities. If permission is never allowed/not set in any context (in particular, if you are creating or editing a role at the site level), then a user will have no permission for that capability.&lt;br /&gt;
&lt;br /&gt;
For example, the Student role has permission not set for the change site configuration capability. The permission is never allowed in any context so users assigned the role of Student cannot change the site configuration.&lt;br /&gt;
&lt;br /&gt;
==What is my role here?==&lt;br /&gt;
&lt;br /&gt;
This is a frequently asked question, but an improper one.  The correct question is &amp;quot;What are my &#039;&#039;permissions&#039;&#039; here?&amp;quot;  In any given context, you often have two or more roles.  In addition, one or more role overrides may be in effect.  Your permissions in a given context are a result of &amp;quot;adding&amp;quot; the individual permissions from these roles and overrides according to certain rules.  As Tim Hunt writes in [http://moodle.org/mod/forum/discuss.php?d=90140 this discussion], the rules &amp;quot;normally do what you expect.&amp;quot;  However when permissions conflict, the results can be surprising, and it pays to understand the [[rules for adding permissions]].&lt;br /&gt;
&lt;br /&gt;
==How do I debug a roles-related problem?==&lt;br /&gt;
&lt;br /&gt;
If you&#039;re having a problem that you suspect is related to roles, consider using [[The rolesdebug.php roles debugging script | the rolesdebug.php roles debugging script]].  You can download it from the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=1204 Modules and plugins database].  The script gives you a spatial view of your role assignments and overrides in a given context, and analyzes your permissions there.  To interpret the output requires a basic understanding of roles and capabilities.  If you are a complete roles novice, run the script and post the output to the [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities Forum].&lt;br /&gt;
&lt;br /&gt;
==Are there any differences in Roles in Moodle 1.7 and 1.8?==&lt;br /&gt;
&lt;br /&gt;
In addition to many Roles fixes and refinements (see the list of [http://tracker.moodle.org/secure/IssueNavigator.jspa?mode=hide&amp;amp;requestId=10221 Roles improvements] in the Tracker), in Moodle 1.8 the &#039;&#039;system&#039;&#039; context is separated from the &#039;&#039;front page&#039;&#039; context. Roles may be assigned in the front page context via &#039;&#039;Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Duplicate role&amp;quot; button has been added in Moodle 1.8, which makes creating new roles based on predefined roles much quicker.&lt;br /&gt;
&lt;br /&gt;
==How do I change the name for &amp;quot;teacher&amp;quot; in the course description?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
* Edit the role of Teacher via &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; and rename it. The new name will apply site-wide.&lt;br /&gt;
Or&lt;br /&gt;
* Create a duplicate teacher role with an alternative name and assign users the duplicate teacher role as appropriate in the course context. In &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Course manager&#039;&#039; select the alternative name for teacher that you wish to be displayed in the course description.&lt;br /&gt;
Or&lt;br /&gt;
* One more way to do it in 1.8 is to create new &amp;quot;dummy&amp;quot; roles (no capabilities) with those names and assign them to teachers along with the real roles. In the course manager settings you can choose which roles display on the front page under each course. (The feature request [http://tracker.moodle.org/browse/MDL-9182 Ability to assign or display custom title for role of person in course] contains this further method.)&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}From Moodle 1.9 onwards, names for different roles in a course may be changed in the [[Course settings|course settings]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to set role overrides?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Edit the teacher role and change the capability [[Capabilities/moodle/role:override|moodle/role:override]] to allow.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
#Click the tab &amp;quot;Allow role overrides&amp;quot; (in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;).&lt;br /&gt;
#Check the appropriate box to allow a teacher to override the student role.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to assign other teachers in a course?==&lt;br /&gt;
&lt;br /&gt;
This is disabled by default but it can be switched on by modifying the teacher&#039;s role. In &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; select the &amp;quot;Allow role assignments&amp;quot; tab and tick the checkbox where Teacher and Teacher intersect.&lt;br /&gt;
&lt;br /&gt;
==Why doesn&#039;t &amp;quot;Switch role to..&amp;quot; within a course seem to work properly for a course creator?==&lt;br /&gt;
&lt;br /&gt;
This feature is intended for teachers so that they can see how their course appears for students. It doesn&#039;t work reliably outside the course.&lt;br /&gt;
&lt;br /&gt;
Further information about this feature can be found in [[Switch roles]] and the paragraph on testing a new role in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
==Are there any example roles?==&lt;br /&gt;
&lt;br /&gt;
Yes, as follows:&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Keyholder role]] - for setting the person named as holding a course [[Enrolment key|enrolment key]]&lt;br /&gt;
*[[Calendar editor role|Calendar editor]] - for providing a user with permission to add site events to the calendar&lt;br /&gt;
*[[Blogger role]] - for limiting blogging to specific users only&lt;br /&gt;
&lt;br /&gt;
==Logged-in users can&#039;t read the site news. What can I do?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Scroll down to &#039;&#039;&#039;Forum&#039;&#039;&#039;&lt;br /&gt;
#Change the capability [[Capabilities/mod/forum:viewdiscussion|mod/forum:viewdiscussion]] to &#039;&#039;allow&#039;&#039;&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
==How do I enable logged-in users to participate in front page activities?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Change capabilities to &#039;&#039;allow&#039;&#039; for all required activities e.g. record a choice, reply to posts&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Note that for this to work, you need to make the default role for all users &amp;quot;authenticated user&amp;quot;. This is the default for new versions of Moodle. In older versions, the default setting is guest, so if you have recently upgraded, you may have to change this setting. You can change the setting via &#039;&#039;Site Administration &amp;gt; Permissions &amp;gt; User Policies&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Click on Student&lt;br /&gt;
#Select all users in the potential users list, and use the left-facing arrow button to add them to the existing users list&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ_roles]]&lt;br /&gt;
[[fr:FAQ des rôles]]&lt;br /&gt;
[[ja:ロールFAQ]]&lt;br /&gt;
[[ru:FAQ по ролям]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=File:URI_of_course_at_bottom_of_browser_window.png&amp;diff=33644</id>
		<title>File:URI of course at bottom of browser window.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=File:URI_of_course_at_bottom_of_browser_window.png&amp;diff=33644"/>
		<updated>2008-03-15T16:43:59Z</updated>

		<summary type="html">&lt;p&gt;Jisner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=File:URI_of_course_in_address_bar.png&amp;diff=33643</id>
		<title>File:URI of course in address bar.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=File:URI_of_course_in_address_bar.png&amp;diff=33643"/>
		<updated>2008-03-15T16:43:20Z</updated>

		<summary type="html">&lt;p&gt;Jisner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=33598</id>
		<title>Roles FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=33598"/>
		<updated>2008-03-13T18:15:17Z</updated>

		<summary type="html">&lt;p&gt;Jisner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
&lt;br /&gt;
==What is the definition of a...==&lt;br /&gt;
&lt;br /&gt;
;Role&lt;br /&gt;
:An identifier of the user&#039;s status in some context, for example Teacher, Student and Forum moderator&lt;br /&gt;
;Capability&lt;br /&gt;
:A description of a particular Moodle feature, for example [[Capabilities/moodle/blog:create|moodle/blog:create]]&lt;br /&gt;
;Permission&lt;br /&gt;
:A setting for a capability - inherit, allow, prevent or prohibit&lt;br /&gt;
;Context&lt;br /&gt;
:A &amp;quot;space&amp;quot; in Moodle, such as courses, activity modules or blocks&lt;br /&gt;
&lt;br /&gt;
==Why isn&#039;t my role change taking effect?==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.9 and newer role changes are immediate; in Moodle 1.7.x and 1.8.x role they are not, and will take effect after the next login from that user. Regarding testing new roles, please refer to the information in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
Also, please check the context in which the role is assigned. Certain capabilities e.g. [[Capabilities/moodle/user:update|moodle/user:update]] may only be applied in the system context, so assigning a role in the course context will result in the role change not taking effect.&lt;br /&gt;
&lt;br /&gt;
==Why are participants being added automatically when a new course is created?==&lt;br /&gt;
&lt;br /&gt;
If a user is assigned a system role or a role in the course category context then the user has this role in ALL courses in that context. Thus users who are students or teachers at the category level appear as course participants in all courses in that category.&lt;br /&gt;
&lt;br /&gt;
Please check &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039; and also the Assign roles link in course categories page and unassign users as necessary.&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
*Users are assigned the role of student in the site/system context rather than the course context (see FAQ above)&lt;br /&gt;
Or&lt;br /&gt;
*The default role for all users in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to Student rather than Authenticated user (Moodle 1.8 onwards).&lt;br /&gt;
&lt;br /&gt;
==Why are there differences in the users listed as course participants and users assigned roles in a course?==&lt;br /&gt;
&lt;br /&gt;
Users assigned roles in a higher context, for example users assigned the role of teacher in a course category context, may appear as course participants. The discussion [http://moodle.org/mod/forum/discuss.php?d=59900 Discrepancies between Assign Roles lists and Participants list] contains a longer explanation. &lt;br /&gt;
&lt;br /&gt;
==How can I prevent administrators being listed as course participants?==&lt;br /&gt;
&lt;br /&gt;
Ensure that administrators are not assigned another role in addition to their admin role.&lt;br /&gt;
&lt;br /&gt;
==Why are hidden assignments still visible?==&lt;br /&gt;
&lt;br /&gt;
Hidden assignments are not hidden from admins or teachers i.e. users with the [[Capabilities/moodle/role:viewhiddenassigns|viewhiddenassigns capability]].&lt;br /&gt;
&lt;br /&gt;
==Where are permissions inherited from?==&lt;br /&gt;
&lt;br /&gt;
Permissions are inherited from a role assigned in a higher-level context which has permissions set to allow for particular capabilities. If permission is never allowed/not set in any context (in particular, if you are creating or editing a role at the site level), then a user will have no permission for that capability.&lt;br /&gt;
&lt;br /&gt;
For example, the Student role has permission not set for the change site configuration capability. The permission is never allowed in any context so users assigned the role of Student cannot change the site configuration.&lt;br /&gt;
&lt;br /&gt;
==What is my role here?==&lt;br /&gt;
&lt;br /&gt;
This is a frequently asked question, but an improper one.  The correct question is &amp;quot;What are my &#039;&#039;permissions&#039;&#039; here?&amp;quot;  In any given context, you normally have two roles.  Often, you have more than that.  In addition, one or more role overrides may be in effect.  Your permissions in a given context are a result of &amp;quot;adding&amp;quot; the individual permissions from these roles and overrides according to certain rules.  As Tim Hunt writes in [http://moodle.org/mod/forum/discuss.php?d=90140 this discussion], the rules &amp;quot;normally do what you expect.&amp;quot;  However when permissions conflict, the results can be surprising, and it pays to understand the [[rules for adding permissions]].&lt;br /&gt;
&lt;br /&gt;
==How do I debug a roles-related problem?==&lt;br /&gt;
&lt;br /&gt;
If you&#039;re having a problem that you suspect is related to roles, consider using [[The rolesdebug.php roles debugging script | the rolesdebug.php roles debugging script]].  You can download it from the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=1204 Modules and plugins database].  The script gives you a spatial view of your role assignments and overrides in a given context, and analyzes your permissions there.  To interpret the output requires a basic understanding of roles and capabilities.  If you are a complete roles novice, run the script and post the output to the [http://moodle.org/mod/forum/view.php?id=6826 Roles and Capabilities Forum].&lt;br /&gt;
&lt;br /&gt;
==Are there any differences in Roles in Moodle 1.7 and 1.8?==&lt;br /&gt;
&lt;br /&gt;
In addition to many Roles fixes and refinements (see the list of [http://tracker.moodle.org/secure/IssueNavigator.jspa?mode=hide&amp;amp;requestId=10221 Roles improvements] in the Tracker), in Moodle 1.8 the &#039;&#039;system&#039;&#039; context is separated from the &#039;&#039;front page&#039;&#039; context. Roles may be assigned in the front page context via &#039;&#039;Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Duplicate role&amp;quot; button has been added in Moodle 1.8, which makes creating new roles based on predefined roles much quicker.&lt;br /&gt;
&lt;br /&gt;
==How do I change the name for &amp;quot;teacher&amp;quot; in the course description?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
* Edit the role of Teacher via &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; and rename it. The new name will apply site-wide.&lt;br /&gt;
Or&lt;br /&gt;
* Create a duplicate teacher role with an alternative name and assign users the duplicate teacher role as appropriate in the course context. In &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Course manager&#039;&#039; select the alternative name for teacher that you wish to be displayed in the course description.&lt;br /&gt;
Or&lt;br /&gt;
* One more way to do it in 1.8 is to create new &amp;quot;dummy&amp;quot; roles (no capabilities) with those names and assign them to teachers along with the real roles. In the course manager settings you can choose which roles display on the front page under each course. (The feature request [http://tracker.moodle.org/browse/MDL-9182 Ability to assign or display custom title for role of person in course] contains this further method.)&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}From Moodle 1.9 onwards, names for different roles in a course may be changed in the [[Course settings|course settings]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to set role overrides?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Edit the teacher role and change the capability [[Capabilities/moodle/role:override|moodle/role:override]] to allow.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
#Click the tab &amp;quot;Allow role overrides&amp;quot; (in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;).&lt;br /&gt;
#Check the appropriate box to allow a teacher to override the student role.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to assign other teachers in a course?==&lt;br /&gt;
&lt;br /&gt;
This is disabled by default but it can be switched on by modifying the teacher&#039;s role. In &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; select the &amp;quot;Allow role assignments&amp;quot; tab and tick the checkbox where Teacher and Teacher intersect.&lt;br /&gt;
&lt;br /&gt;
==Why doesn&#039;t &amp;quot;Switch role to..&amp;quot; within a course seem to work properly for a course creator?==&lt;br /&gt;
&lt;br /&gt;
This feature is intended for teachers so that they can see how their course appears for students. It doesn&#039;t work reliably outside the course.&lt;br /&gt;
&lt;br /&gt;
Further information about this feature can be found in [[Switch roles]] and the paragraph on testing a new role in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
==Are there any example roles?==&lt;br /&gt;
&lt;br /&gt;
Yes, as follows:&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Keyholder role]] - for setting the person named as holding a course [[Enrolment key|enrolment key]]&lt;br /&gt;
*[[Calendar editor role|Calendar editor]] - for providing a user with permission to add site events to the calendar&lt;br /&gt;
*[[Blogger role]] - for limiting blogging to specific users only&lt;br /&gt;
&lt;br /&gt;
==Logged-in users can&#039;t read the site news. What can I do?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Scroll down to &#039;&#039;&#039;Forum&#039;&#039;&#039;&lt;br /&gt;
#Change the capability [[Capabilities/mod/forum:viewdiscussion|mod/forum:viewdiscussion]] to &#039;&#039;allow&#039;&#039;&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
==How do I enable logged-in users to participate in front page activities?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Change capabilities to &#039;&#039;allow&#039;&#039; for all required activities e.g. record a choice, reply to posts&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Note that for this to work, you need to make the default role for all users &amp;quot;authenticated user&amp;quot;. This is the default for new versions of Moodle. In older versions, the default setting is guest, so if you have recently upgraded, you may have to change this setting. You can change the setting via &#039;&#039;Site Administration &amp;gt; Permissions &amp;gt; User Policies&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Click on Student&lt;br /&gt;
#Select all users in the potential users list, and use the left-facing arrow button to add them to the existing users list&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ_roles]]&lt;br /&gt;
[[fr:FAQ des rôles]]&lt;br /&gt;
[[ja:ロールFAQ]]&lt;br /&gt;
[[ru:FAQ по ролям]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=File:sample_output_quiz_attempt_with_override_showing_path.png&amp;diff=33528</id>
		<title>File:sample output quiz attempt with override showing path.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=File:sample_output_quiz_attempt_with_override_showing_path.png&amp;diff=33528"/>
		<updated>2008-03-12T20:53:14Z</updated>

		<summary type="html">&lt;p&gt;Jisner: rolesdebug.php output table annotated to show path through table when there are overrides.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;rolesdebug.php output table annotated to show path through table when there are overrides.&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=File:sample_output_quiz_attempt_showing_path.png&amp;diff=33527</id>
		<title>File:sample output quiz attempt showing path.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=File:sample_output_quiz_attempt_showing_path.png&amp;diff=33527"/>
		<updated>2008-03-12T20:52:29Z</updated>

		<summary type="html">&lt;p&gt;Jisner: rolesdebug.php output annotated to show path through table that Moodle follows when calculating permissions.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;rolesdebug.php output annotated to show path through table that Moodle follows when calculating permissions.&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=File:sample_output_quiz_attempt_with_override.png&amp;diff=33526</id>
		<title>File:sample output quiz attempt with override.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=File:sample_output_quiz_attempt_with_override.png&amp;diff=33526"/>
		<updated>2008-03-12T20:51:36Z</updated>

		<summary type="html">&lt;p&gt;Jisner: rolesdebug.php output when there is an override&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;rolesdebug.php output when there is an override&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=File:sample_output_quiz_attempt.png&amp;diff=33525</id>
		<title>File:sample output quiz attempt.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=File:sample_output_quiz_attempt.png&amp;diff=33525"/>
		<updated>2008-03-12T20:49:56Z</updated>

		<summary type="html">&lt;p&gt;Jisner: rolesdebug.php output&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;rolesdebug.php output&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=File:sample_input_quiz_attempt.png&amp;diff=33523</id>
		<title>File:sample input quiz attempt.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=File:sample_input_quiz_attempt.png&amp;diff=33523"/>
		<updated>2008-03-12T20:47:52Z</updated>

		<summary type="html">&lt;p&gt;Jisner: rolesdebug.php input fields&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;rolesdebug.php input fields&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=DragMath_equation_editor&amp;diff=33154</id>
		<title>DragMath equation editor</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=DragMath_equation_editor&amp;diff=33154"/>
		<updated>2008-03-03T14:11:23Z</updated>

		<summary type="html">&lt;p&gt;Jisner: /* Locally saving and restoring the DragMath expression */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Introduction===&lt;br /&gt;
DragMath is an applet-based WYSIWYG equation editor created by Christoper Sangwin and Alexander Billingsley at the University of Birmingham as part of the [http://www.stack.bham.ac.uk STACK project].  DragMath allows students to build mathematical expressions in a traditional two-dimensional way using a graphical drag-and-drop interface.  DragMath can output the finished expression in any of several computer-oriented linear syntaxes, including LaTeX.  Since Moodle already supports LaTeX (with the TeX filter) LaTeX was used as the &amp;quot;bridge&amp;quot; for Moodle integration.&lt;br /&gt;
&lt;br /&gt;
To use DragMath, users must have the Java Runtime Environment (JRE) version 1.5 or higher installed on their desktop computers.  Most systems come with the JRE as standard equipment, so you may not have to do anything. If you need to install the JRE manually, you can download it from [http://java.com/en/download/index.jsp here].  Note that the JRE is variously known as Java software for your computer, Java Runtime Environment, the Java Runtime, Runtime Environment, Runtime, Java Virtual Machine, Virtual Machine, Java VM, JVM, VM, or Java download.  &lt;br /&gt;
 &lt;br /&gt;
You can see a demo of the DragMath editor [http://www.dragmath.bham.ac.uk/ here].  The DragMath interface is highly intuitive and anyone can be using it productively after a few minutes of trial-and-error.  If you have questions about the editor, there is a short manual [http://www.dragmath.bham.ac.uk/doc/index.html here].&lt;br /&gt;
&lt;br /&gt;
===How the DragMath editor has been integrated with Moodle===&lt;br /&gt;
&#039;&#039;&#039;Important Note:&#039;&#039;&#039; The DragMath editor does not come supplied with Moodle.  You (or your administrator) will have to install it.&lt;br /&gt;
&lt;br /&gt;
[[Category:Mathematics]]&lt;br /&gt;
DragMath is integrated with Moodle through a new button on the HTML editor toolbar.  This way, the DragMath editor is available everywhere that you or your students are called upon to enter text.  &lt;br /&gt;
&lt;br /&gt;
See the screenshot below.  Suppose that you&#039;re entering text in the HTML editor and you reach a point where you want to insert a mathematical expression.  Pushing the DragMath button launches the DragMath editor in a small popup window (Note: the first time you do this, there will be a delay of a few seconds due to applet initialization).  Create the math expression in DragMath and click the &amp;quot;Insert button&amp;quot; when you&#039;re done.  The editor will disappear and the LaTeX markup (with $$ delimiters added at both ends) will be inserted into your text at the current cursor position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Dragmath_instructions.png|DragMath instructions]]&lt;br /&gt;
&lt;br /&gt;
===Installing DragMath===&lt;br /&gt;
You install DragMath in two steps&lt;br /&gt;
#Install the DragMath package &lt;br /&gt;
#Install the DragMath integration package &lt;br /&gt;
&lt;br /&gt;
====Install the DragMath package ====&lt;br /&gt;
Download the latest DragMath package from [http://sourceforge.net/projects/dragmath sourceforge] and unzip it in the &amp;lt;code&amp;gt;$CFG-&amp;gt;dirroot/lib/editor/htmlarea/popups&amp;lt;/code&amp;gt; directory (where &amp;lt;code&amp;gt;$CFG-&amp;gt;dirroot&amp;lt;/code&amp;gt; is your &amp;quot;moodle&amp;quot; directory as defined in &amp;lt;code&amp;gt;config.php&amp;lt;/code&amp;gt;. NOTE there is also a &amp;lt;code&amp;gt;popups&amp;lt;/code&amp;gt; directory directly in the editor directory. Don&#039;t use that one!).  This will create a new directory under &amp;lt;code&amp;gt;popups&amp;lt;/code&amp;gt; called &amp;lt;code&amp;gt;DragMath&amp;lt;/code&amp;gt; containing all the necessary DragMath components.&lt;br /&gt;
&lt;br /&gt;
====Install the DragMath integration package====&lt;br /&gt;
&#039;&#039;&#039;Important Note:&#039;&#039;&#039; These instructions will REPLACE the smiley button on the HTML editor toolbar with the DragMath editor button.  This was done to keep the installation instructions simple.  If you want to keep your smiley button, see the section at the end of this article.&lt;br /&gt;
&lt;br /&gt;
Download the latest DragMath integration package from the [http://moodle.org/mod/data/view.php?id=6009 modules and plugins database].  In the zip archive, you will find two files.&lt;br /&gt;
* &amp;lt;code&amp;gt;dlg_ins_smile.php&amp;lt;/code&amp;gt;  -- Copy this file to your &amp;lt;code&amp;gt;$CFG-&amp;gt;dirroot/lib/editor/htmlarea/popups&amp;lt;/code&amp;gt; directory, overwriting the existing file (you may want to make a copy of the original file before overwriting it)&lt;br /&gt;
* &amp;lt;code&amp;gt;em.icon.smile.gif&amp;lt;/code&amp;gt; -- Copy this file to your &amp;lt;code&amp;gt;$CFG-&amp;gt;dirroot/lib/editor/htmlarea/images&amp;lt;/code&amp;gt; directory, overwriting the existing file (you may want to make a copy of the original file before overwriting it)&lt;br /&gt;
&lt;br /&gt;
You must also change two lines in the file &amp;lt;code&amp;gt;$CFG-&amp;gt;dirroot/lib/editor/htmlarea/dialog.js&amp;lt;/code&amp;gt;&lt;br /&gt;
* around line 34 you will see the line:&lt;br /&gt;
: &amp;lt;code&amp;gt;case &amp;quot;dlg_ins_smile&amp;quot;: x = 330; y = 320; break;&amp;lt;/code&amp;gt;&lt;br /&gt;
Change this line to &lt;br /&gt;
: &amp;lt;code&amp;gt;case &amp;quot;dlg_ins_smile&amp;quot;: x = 540; y = 340; break;&amp;lt;/code&amp;gt;&lt;br /&gt;
* around line 47, you will see a line that begins&lt;br /&gt;
: &amp;lt;code&amp;gt;var dlg = window.open(url, &amp;quot;ha_dialog&amp;quot;, &amp;quot;toolbar=no, menubar=no, ...&amp;lt;/code&amp;gt;&lt;br /&gt;
Modify this line, changing &lt;br /&gt;
: &amp;lt;code&amp;gt;resizable=no&amp;lt;/code&amp;gt;&lt;br /&gt;
to &lt;br /&gt;
: &amp;lt;code&amp;gt;resizable=yes&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You might also want to change the mouse over popup from &amp;quot;Insert Smiley&amp;quot; to &amp;quot;Insert Equation&amp;quot;.  to do this you need to edit the file&lt;br /&gt;
&amp;lt;code&amp;gt;$CFG-&amp;gt;dirroot/lib/editor/htmlarea/htmlarea.php &amp;lt;/code&amp;gt;&lt;br /&gt;
* around line 275 you will see the line:&lt;br /&gt;
: &amp;lt;code&amp;gt;case &amp;quot;insertsmile: [&amp;quot;Insert Smiley&amp;quot;, &amp;quot;em.icon.smile.gif&amp;quot;, false, ...&amp;lt;/code&amp;gt;&lt;br /&gt;
Change this line to&lt;br /&gt;
: &amp;lt;code&amp;gt;case &amp;quot;insertsmile: [&amp;quot;Insert Equation&amp;quot;, &amp;quot;em.icon.smile.gif&amp;quot;, false, ...&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, make sure that the new files and directories you create in the above steps are readable by the Web server.  For example, make sure that the em.icon.smile.gif file has the same permissions as other gif files in the images directory.&lt;br /&gt;
&lt;br /&gt;
====If you want to keep your smiley button...====&lt;br /&gt;
For those users who want to keep their smiley button, there are postings in  [http://moodle.org/mod/forum/discuss.php?d=78683 this discussion] that explain how to do it.  You may also download a special version of the DragMath integration package [http://educity.hk/dragmath.zip here].  Unzip it in your moodle root directory.&lt;br /&gt;
&lt;br /&gt;
===Locally saving and restoring a DragMath expression===&lt;br /&gt;
When you press the Insert button, DragMath inserts LaTeX string into your text and the DragMath window closes. &#039;&#039;The LaTeX string can no longer be manipulated using DragMath.&#039;&#039;  If you decide to change the string, you have two options:&lt;br /&gt;
*delete the LaTeX (including the dollar signs) and completely recreate it using DragMath&lt;br /&gt;
*edit the LaTeX by hand&lt;br /&gt;
You can not tell DragMath to re-read the LaTeX and show it again in two dimensions.  This is a theoretical limitation, not a limitation of DragMath.&lt;br /&gt;
&lt;br /&gt;
But suppose the expression is very complicated.  It would be impractical to start over just to make a simple change.  Before you Insert the LaTeX, you can save a copy of the expression (a .drgm file) to your local disk using the Save button (see screenshot).  Later, if you need to make a change, you open the saved .drgm file.&lt;br /&gt;
&lt;br /&gt;
[[Image:Dragmath_save_and_restore.png|DragMath instructions]]&lt;br /&gt;
&lt;br /&gt;
A .drgm file contains three-dimensional representation of your mathematical expression.  It is a binary file that can only be opened by DragMath.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[ca:DragMath_editor_d%27equacions]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=File:Dragmath_save_and_restore.png&amp;diff=33153</id>
		<title>File:Dragmath save and restore.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=File:Dragmath_save_and_restore.png&amp;diff=33153"/>
		<updated>2008-03-03T14:01:56Z</updated>

		<summary type="html">&lt;p&gt;Jisner: Screenshot of upper right corner of DragMath window showing the Save and Open buttons.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Screenshot of upper right corner of DragMath window showing the Save and Open buttons.&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=DragMath_equation_editor&amp;diff=33152</id>
		<title>DragMath equation editor</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=DragMath_equation_editor&amp;diff=33152"/>
		<updated>2008-03-03T13:59:52Z</updated>

		<summary type="html">&lt;p&gt;Jisner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Introduction===&lt;br /&gt;
DragMath is an applet-based WYSIWYG equation editor created by Christoper Sangwin and Alexander Billingsley at the University of Birmingham as part of the [http://www.stack.bham.ac.uk STACK project].  DragMath allows students to build mathematical expressions in a traditional two-dimensional way using a graphical drag-and-drop interface.  DragMath can output the finished expression in any of several computer-oriented linear syntaxes, including LaTeX.  Since Moodle already supports LaTeX (with the TeX filter) LaTeX was used as the &amp;quot;bridge&amp;quot; for Moodle integration.&lt;br /&gt;
&lt;br /&gt;
To use DragMath, users must have the Java Runtime Environment (JRE) version 1.5 or higher installed on their desktop computers.  Most systems come with the JRE as standard equipment, so you may not have to do anything. If you need to install the JRE manually, you can download it from [http://java.com/en/download/index.jsp here].  Note that the JRE is variously known as Java software for your computer, Java Runtime Environment, the Java Runtime, Runtime Environment, Runtime, Java Virtual Machine, Virtual Machine, Java VM, JVM, VM, or Java download.  &lt;br /&gt;
 &lt;br /&gt;
You can see a demo of the DragMath editor [http://www.dragmath.bham.ac.uk/ here].  The DragMath interface is highly intuitive and anyone can be using it productively after a few minutes of trial-and-error.  If you have questions about the editor, there is a short manual [http://www.dragmath.bham.ac.uk/doc/index.html here].&lt;br /&gt;
&lt;br /&gt;
===How the DragMath editor has been integrated with Moodle===&lt;br /&gt;
&#039;&#039;&#039;Important Note:&#039;&#039;&#039; The DragMath editor does not come supplied with Moodle.  You (or your administrator) will have to install it.&lt;br /&gt;
&lt;br /&gt;
[[Category:Mathematics]]&lt;br /&gt;
DragMath is integrated with Moodle through a new button on the HTML editor toolbar.  This way, the DragMath editor is available everywhere that you or your students are called upon to enter text.  &lt;br /&gt;
&lt;br /&gt;
See the screenshot below.  Suppose that you&#039;re entering text in the HTML editor and you reach a point where you want to insert a mathematical expression.  Pushing the DragMath button launches the DragMath editor in a small popup window (Note: the first time you do this, there will be a delay of a few seconds due to applet initialization).  Create the math expression in DragMath and click the &amp;quot;Insert button&amp;quot; when you&#039;re done.  The editor will disappear and the LaTeX markup (with $$ delimiters added at both ends) will be inserted into your text at the current cursor position.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Dragmath_instructions.png|DragMath instructions]]&lt;br /&gt;
&lt;br /&gt;
===Installing DragMath===&lt;br /&gt;
You install DragMath in two steps&lt;br /&gt;
#Install the DragMath package &lt;br /&gt;
#Install the DragMath integration package &lt;br /&gt;
&lt;br /&gt;
====Install the DragMath package ====&lt;br /&gt;
Download the latest DragMath package from [http://sourceforge.net/projects/dragmath sourceforge] and unzip it in the &amp;lt;code&amp;gt;$CFG-&amp;gt;dirroot/lib/editor/htmlarea/popups&amp;lt;/code&amp;gt; directory (where &amp;lt;code&amp;gt;$CFG-&amp;gt;dirroot&amp;lt;/code&amp;gt; is your &amp;quot;moodle&amp;quot; directory as defined in &amp;lt;code&amp;gt;config.php&amp;lt;/code&amp;gt;. NOTE there is also a &amp;lt;code&amp;gt;popups&amp;lt;/code&amp;gt; directory directly in the editor directory. Don&#039;t use that one!).  This will create a new directory under &amp;lt;code&amp;gt;popups&amp;lt;/code&amp;gt; called &amp;lt;code&amp;gt;DragMath&amp;lt;/code&amp;gt; containing all the necessary DragMath components.&lt;br /&gt;
&lt;br /&gt;
====Install the DragMath integration package====&lt;br /&gt;
&#039;&#039;&#039;Important Note:&#039;&#039;&#039; These instructions will REPLACE the smiley button on the HTML editor toolbar with the DragMath editor button.  This was done to keep the installation instructions simple.  If you want to keep your smiley button, see the section at the end of this article.&lt;br /&gt;
&lt;br /&gt;
Download the latest DragMath integration package from the [http://moodle.org/mod/data/view.php?id=6009 modules and plugins database].  In the zip archive, you will find two files.&lt;br /&gt;
* &amp;lt;code&amp;gt;dlg_ins_smile.php&amp;lt;/code&amp;gt;  -- Copy this file to your &amp;lt;code&amp;gt;$CFG-&amp;gt;dirroot/lib/editor/htmlarea/popups&amp;lt;/code&amp;gt; directory, overwriting the existing file (you may want to make a copy of the original file before overwriting it)&lt;br /&gt;
* &amp;lt;code&amp;gt;em.icon.smile.gif&amp;lt;/code&amp;gt; -- Copy this file to your &amp;lt;code&amp;gt;$CFG-&amp;gt;dirroot/lib/editor/htmlarea/images&amp;lt;/code&amp;gt; directory, overwriting the existing file (you may want to make a copy of the original file before overwriting it)&lt;br /&gt;
&lt;br /&gt;
You must also change two lines in the file &amp;lt;code&amp;gt;$CFG-&amp;gt;dirroot/lib/editor/htmlarea/dialog.js&amp;lt;/code&amp;gt;&lt;br /&gt;
* around line 34 you will see the line:&lt;br /&gt;
: &amp;lt;code&amp;gt;case &amp;quot;dlg_ins_smile&amp;quot;: x = 330; y = 320; break;&amp;lt;/code&amp;gt;&lt;br /&gt;
Change this line to &lt;br /&gt;
: &amp;lt;code&amp;gt;case &amp;quot;dlg_ins_smile&amp;quot;: x = 540; y = 340; break;&amp;lt;/code&amp;gt;&lt;br /&gt;
* around line 47, you will see a line that begins&lt;br /&gt;
: &amp;lt;code&amp;gt;var dlg = window.open(url, &amp;quot;ha_dialog&amp;quot;, &amp;quot;toolbar=no, menubar=no, ...&amp;lt;/code&amp;gt;&lt;br /&gt;
Modify this line, changing &lt;br /&gt;
: &amp;lt;code&amp;gt;resizable=no&amp;lt;/code&amp;gt;&lt;br /&gt;
to &lt;br /&gt;
: &amp;lt;code&amp;gt;resizable=yes&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You might also want to change the mouse over popup from &amp;quot;Insert Smiley&amp;quot; to &amp;quot;Insert Equation&amp;quot;.  to do this you need to edit the file&lt;br /&gt;
&amp;lt;code&amp;gt;$CFG-&amp;gt;dirroot/lib/editor/htmlarea/htmlarea.php &amp;lt;/code&amp;gt;&lt;br /&gt;
* around line 275 you will see the line:&lt;br /&gt;
: &amp;lt;code&amp;gt;case &amp;quot;insertsmile: [&amp;quot;Insert Smiley&amp;quot;, &amp;quot;em.icon.smile.gif&amp;quot;, false, ...&amp;lt;/code&amp;gt;&lt;br /&gt;
Change this line to&lt;br /&gt;
: &amp;lt;code&amp;gt;case &amp;quot;insertsmile: [&amp;quot;Insert Equation&amp;quot;, &amp;quot;em.icon.smile.gif&amp;quot;, false, ...&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, make sure that the new files and directories you create in the above steps are readable by the Web server.  For example, make sure that the em.icon.smile.gif file has the same permissions as other gif files in the images directory.&lt;br /&gt;
&lt;br /&gt;
====If you want to keep your smiley button...====&lt;br /&gt;
For those users who want to keep their smiley button, there are postings in  [http://moodle.org/mod/forum/discuss.php?d=78683 this discussion] that explain how to do it.  You may also download a special version of the DragMath integration package [http://educity.hk/dragmath.zip here].  Unzip it in your moodle root directory.&lt;br /&gt;
&lt;br /&gt;
===Locally saving and restoring the DragMath expression===&lt;br /&gt;
When you press the Insert button, DragMath inserts LaTeX string into your text and the DragMath window closes. The LaTeX string can no longer be manipulated with DragMath.  If you decide to change the string, you have two options:&lt;br /&gt;
*delete the LaTeX (including the dollar signs) and recreate it using DragMath&lt;br /&gt;
*edit the LaTeX by hand&lt;br /&gt;
You can not tell DragMath to re-read the LaTeX and show it again in two dimensions.  This is a theoretical limitation, not a limitation of DragMath.&lt;br /&gt;
&lt;br /&gt;
But suppose the expression is very complicated.  It would be impractical to start over just to make a simple change.  Before you Insert the LaTeX, save a copy of the expression (a .drgm file) to your local disk using the Save button(see screenshot).  Later, if you need to make a change, you open the saved .drgm file.&lt;br /&gt;
&lt;br /&gt;
[[Image:Dragmath_save_and_restore.png|DragMath instructions]]&lt;br /&gt;
&lt;br /&gt;
A .drgm file contains three-dimensional representation of your mathematical expression.  It is a binary file that can only be opened by DragMath.&lt;br /&gt;
&lt;br /&gt;
[[ca:DragMath_editor_d%27equacions]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=File:Algorithm_path_through_permission_table.png&amp;diff=32743</id>
		<title>File:Algorithm path through permission table.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=File:Algorithm_path_through_permission_table.png&amp;diff=32743"/>
		<updated>2008-02-24T17:10:13Z</updated>

		<summary type="html">&lt;p&gt;Jisner: This diagram illustrates the path through the permissions data taken by the algorithm in lib/accesslib/has_capability() in Moodle 1.9&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This diagram illustrates the path through the permissions data taken by the algorithm in lib/accesslib/has_capability() in Moodle 1.9&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=32511</id>
		<title>Roles FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/21/en/index.php?title=Roles_FAQ&amp;diff=32511"/>
		<updated>2008-02-20T16:53:44Z</updated>

		<summary type="html">&lt;p&gt;Jisner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
&lt;br /&gt;
==What is the definition of a...==&lt;br /&gt;
&lt;br /&gt;
;Role&lt;br /&gt;
:An identifier of the user&#039;s status in some context, for example Teacher, Student and Forum moderator&lt;br /&gt;
;Capability&lt;br /&gt;
:A description of a particular Moodle feature, for example [[Capabilities/moodle/blog:create|moodle/blog:create]]&lt;br /&gt;
;Permission&lt;br /&gt;
:A setting for a capability - inherit, allow, prevent or prohibit&lt;br /&gt;
;Context&lt;br /&gt;
:A &amp;quot;space&amp;quot; in Moodle, such as courses, activity modules or blocks&lt;br /&gt;
&lt;br /&gt;
==Why isn&#039;t my role change taking effect?==&lt;br /&gt;
&lt;br /&gt;
In Moodle 1.9 and newer role changes are immediate; in Moodle 1.7.x and 1.8.x role they are not, and will take effect after the next login from that user. Regarding testing new roles, please refer to the information in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
Also, please check the context in which the role is assigned. Certain capabilities e.g. [[Capabilities/moodle/user:update|moodle/user:update]] may only be applied in the system context, so assigning a role in the course context will result in the role change not taking effect.&lt;br /&gt;
&lt;br /&gt;
==Why are participants being added automatically when a new course is created?==&lt;br /&gt;
&lt;br /&gt;
If a user is assigned a global role or a role in the course category context then the user has this role in ALL courses in that context. Thus users who are students or teachers at the category level appear as course participants in all courses in that category.&lt;br /&gt;
&lt;br /&gt;
Please check &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign global roles&#039;&#039; and also the Assign roles link in course categories page and unassign users as necessary.&lt;br /&gt;
&lt;br /&gt;
==Why are all students enrolled in all courses?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
*Users are assigned the role of student in the site/system context rather than the course context (see FAQ above)&lt;br /&gt;
Or&lt;br /&gt;
*The default role for all users in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; User policies&#039;&#039; is set to Student rather than Authenticated user (Moodle 1.8 onwards).&lt;br /&gt;
&lt;br /&gt;
==Why are there differences in the users listed as course participants and users assigned roles in a course?==&lt;br /&gt;
&lt;br /&gt;
Users assigned roles in a higher context, for example users assigned the role of teacher in a course category context, may appear as course participants. The discussion [http://moodle.org/mod/forum/discuss.php?d=59900 Discrepancies between Assign Roles lists and Participants list] contains a longer explanation. &lt;br /&gt;
&lt;br /&gt;
==How can I prevent administrators being listed as course participants?==&lt;br /&gt;
&lt;br /&gt;
Ensure that administrators are not assigned another role in addition to their admin role.&lt;br /&gt;
&lt;br /&gt;
==Why are hidden assignments still visible?==&lt;br /&gt;
&lt;br /&gt;
Hidden assignments are not hidden from admins or teachers i.e. users with the [[Capabilities/moodle/role:viewhiddenassigns|viewhiddenassigns capability]].&lt;br /&gt;
&lt;br /&gt;
==Where are permissions inherited from?==&lt;br /&gt;
&lt;br /&gt;
Permissions are inherited from a role assigned in a higher-level context which has permissions set to allow for particular capabilities. If permission is never allowed/not set in any context (in particular, if you are creating or editing a role at the site level), then a user will have no permission for that capability.&lt;br /&gt;
&lt;br /&gt;
For example, the Student role has permission not set for the change site configuration capability. The permission is never allowed in any context so users assigned the role of Student cannot change the site configuration.&lt;br /&gt;
&lt;br /&gt;
==What is my role here?==&lt;br /&gt;
&lt;br /&gt;
This is a frequently asked question, but an improper one.  The correct question is &amp;quot;What are my &#039;&#039;permissions&#039;&#039; here?&amp;quot;  In any given context, you normally have two roles.  Often, you have more than that.  In addition, one or more role overrides may be in effect.  Your permissions in a given context are a result of &amp;quot;adding&amp;quot; the individual permissions from these roles and overrides according to certain rules.  As Tim Hunt writes in [http://moodle.org/mod/forum/discuss.php?d=90140 this discussion], the rules &amp;quot;normally do what you expect.&amp;quot;  However when permissions conflict, the results can be surprising, and it pays to understand the [[rules for adding permissions]].&lt;br /&gt;
&lt;br /&gt;
==Are there any differences in Roles in Moodle 1.7 and 1.8?==&lt;br /&gt;
&lt;br /&gt;
In addition to many Roles fixes and refinements (see the list of [http://tracker.moodle.org/secure/IssueNavigator.jspa?mode=hide&amp;amp;requestId=10221 Roles improvements] in the Tracker), in Moodle 1.8 the &#039;&#039;system&#039;&#039; context is separated from the &#039;&#039;front page&#039;&#039; context. Roles may be assigned in the front page context via &#039;&#039;Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
A &amp;quot;Duplicate role&amp;quot; button has been added in Moodle 1.8, which makes creating new roles based on predefined roles much quicker.&lt;br /&gt;
&lt;br /&gt;
==How do I change the name for &amp;quot;teacher&amp;quot; in the course description?==&lt;br /&gt;
&lt;br /&gt;
Either&lt;br /&gt;
* Edit the role of Teacher via &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; and rename it. The new name will apply site-wide.&lt;br /&gt;
Or&lt;br /&gt;
* Create a duplicate teacher role with an alternative name and assign users the duplicate teacher role as appropriate in the course context. In &#039;&#039;Administration &amp;gt; Appearance &amp;gt; Course manager&#039;&#039; select the alternative name for teacher that you wish to be displayed in the course description.&lt;br /&gt;
Or&lt;br /&gt;
* One more way to do it in 1.8 is to create new &amp;quot;dummy&amp;quot; roles (no capabilities) with those names and assign them to teachers along with the real roles. In the course manager settings you can choose which roles display on the front page under each course. (The feature request [http://tracker.moodle.org/browse/MDL-9182 Ability to assign or display custom title for role of person in course] contains this further method.)&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}From Moodle 1.9 onwards, names for different roles in a course may be changed in the [[Course settings|course settings]].&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to set role overrides?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;.&lt;br /&gt;
#Edit the teacher role and change the capability [[Capabilities/moodle/role:override|moodle/role:override]] to allow.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
#Click the tab &amp;quot;Allow role overrides&amp;quot; (in &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;).&lt;br /&gt;
#Check the appropriate box to allow a teacher to override the student role.&lt;br /&gt;
#Click the button &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==How do I enable teachers to assign other teachers in a course?==&lt;br /&gt;
&lt;br /&gt;
This is disabled by default but it can be switched on by modifying the teacher&#039;s role. In &#039;&#039;Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; select the &amp;quot;Allow role assignments&amp;quot; tab and tick the checkbox where Teacher and Teacher intersect.&lt;br /&gt;
&lt;br /&gt;
==Why doesn&#039;t &amp;quot;Switch role to..&amp;quot; within a course seem to work properly for a course creator?==&lt;br /&gt;
&lt;br /&gt;
This feature is intended for teachers so that they can see how their course appears for students. It doesn&#039;t work reliably outside the course.&lt;br /&gt;
&lt;br /&gt;
Further information about this feature can be found in [[Switch roles]] and the paragraph on testing a new role in [[Manage roles]].&lt;br /&gt;
&lt;br /&gt;
==Are there any example roles?==&lt;br /&gt;
&lt;br /&gt;
Yes, as follows:&lt;br /&gt;
&lt;br /&gt;
*[[Inspector role|Inspector]] - for providing external inspectors with permission to view all courses (without being required to enrol)&lt;br /&gt;
*[[Parent role|Parent]] - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees&lt;br /&gt;
*[[Demo teacher role|Demo teacher]] - for providing a demonstration teacher account with a password which can&#039;t be changed&lt;br /&gt;
*[[Forum moderator role]] - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums&lt;br /&gt;
*[[Keyholder role]] - for setting the person named as holding a course [[Enrolment key|enrolment key]]&lt;br /&gt;
*[[Calendar editor role|Calendar editor]] - for providing a user with permission to add site events to the calendar&lt;br /&gt;
&lt;br /&gt;
==Logged-in users can&#039;t read the site news. What can I do?==&lt;br /&gt;
&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Scroll down to &#039;&#039;&#039;Forum&#039;&#039;&#039;&lt;br /&gt;
#Change the capability [[Capabilities/mod/forum:viewdiscussion|mod/forum:viewdiscussion]] to &#039;&#039;allow&#039;&#039;&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
==How do I enable logged-in users to participate in front page activities?==&lt;br /&gt;
&lt;br /&gt;
Either:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Follow the &amp;quot;Override roles&amp;quot; link&lt;br /&gt;
#Click on &amp;quot;Authenticated User&amp;quot;&lt;br /&gt;
#Change capabilities to &#039;&#039;allow&#039;&#039; for all required activities e.g. record a choice, reply to posts&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page&lt;br /&gt;
&lt;br /&gt;
Note that for this to work, you need to make the default role for all users &amp;quot;authenticated user&amp;quot;. This is the default for new versions of Moodle. In older versions, the default setting is guest, so if you have recently upgraded, you may have to change this setting. You can change the setting via &#039;&#039;Site Administration &amp;gt; Permissions &amp;gt; User Policies&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Or:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page roles&#039;&#039;&lt;br /&gt;
#Click on Student&lt;br /&gt;
#Select all users in the potential users list, and use the left-facing arrow button to add them to the existing users list&lt;br /&gt;
&lt;br /&gt;
{{Moodle 1.9}}Or, in Moodle 1.9 onwards:&lt;br /&gt;
#Access &#039;&#039;Site Administration &amp;gt; Front Page &amp;gt; Front Page settings&#039;&#039;&lt;br /&gt;
#Set the default front page role to student.&lt;br /&gt;
&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[es:FAQ_roles]]&lt;br /&gt;
[[fr:FAQ des rôles]]&lt;br /&gt;
[[ja:ロールFAQ]]&lt;br /&gt;
[[ru:FAQ по ролям]]&lt;/div&gt;</summary>
		<author><name>Jisner</name></author>
	</entry>
</feed>