<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/32/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cathkdsc</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/32/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Cathkdsc"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/Special:Contributions/Cathkdsc"/>
	<updated>2026-05-10T17:09:54Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Upload_users&amp;diff=127806</id>
		<title>Upload users</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Upload_users&amp;diff=127806"/>
		<updated>2018-06-15T09:36:10Z</updated>

		<summary type="html">&lt;p&gt;Cathkdsc: /* Allow renames */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Accounts}}&lt;br /&gt;
==Uploading users via text file==&lt;br /&gt;
&lt;br /&gt;
There are many options for uploading information (fields associated with a user) with this method: from enrolling users in multiple courses with course specific [[Roles|roles]] to updating user information in the [[User profile]] to deleting users from the site.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Tip:&#039;&#039; It is usually not necessary to upload users in bulk with Upload users. To keep maintenance work down you should first explore forms of authentication that do not require manual maintenance, such as [[External database authentication|connecting to existing external databases]] or letting the users create their own accounts ([[Self enrolment]]). See [[Authentication]] for more information.&lt;br /&gt;
&lt;br /&gt;
==File formats for upload users file==&lt;br /&gt;
The upload users file has fields separated by a comma (or other delimiter) ONLY - no space.   The first line contains the valid field names.  The rest of the lines (records) contain information about each user.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Tip:&#039;&#039; Avoid special characters in field information like quotes or other commas. Test a file with only one record before a large upload.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Tip:&#039;&#039; You can use a spread sheet program to create the file with the required columns and fields. Then save the file as &amp;quot;CSV (comma delimited)&amp;quot;. These files can be opened with simple text editors (eg, [https://notepad-plus-plus.org/ Notepad++]) for verification. &lt;br /&gt;
&lt;br /&gt;
===Valid upload file for testing===&lt;br /&gt;
Here is an example of a simple valid upload file:&lt;br /&gt;
(Column headers on the first line of the file are only highlighted in bold in this example to distinguish it from the rest of the of the data/user details), assuming you have already created the course &#039;math102&#039; and the two cohorts of the proper names.&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;username,password,firstname,lastname,email,course1,group1,cohort1&#039;&#039;&#039;&lt;br /&gt;
 jonest,verySecret3$,Tom,Jones,jonest@example.com,math102,Section 1,year 3&lt;br /&gt;
 reznort,someSecret4#,Trent,Reznor,reznort@example.com,math102,Section 3,year 4&lt;br /&gt;
&lt;br /&gt;
== User Fields that can be included==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Tip:&#039;&#039; We strongly recommend that you test a file that contains fields you proposed to use with one user before attempting a file upload for the first time. &lt;br /&gt;
&lt;br /&gt;
===Required fields=== &lt;br /&gt;
&lt;br /&gt;
These are the required user identification fields:&lt;br /&gt;
&amp;lt;code&amp;gt;username,firstname,lastname,email&amp;lt;/code&amp;gt;&lt;br /&gt;
Validity checks are performed for:&lt;br /&gt;
* &#039;&#039;&#039;username&#039;&#039;&#039; can only contain alphabetical &#039;&#039;&#039;lowercase&#039;&#039;&#039; letters , numbers, hypen &#039;-&#039;, underscore &#039;_&#039;, period &#039;.&#039;, or at-sign &#039;@&#039; &lt;br /&gt;
* &#039;&#039;&#039;email&#039;&#039;&#039; is in the form: &#039;&#039;name@example.com&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Passwords===&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;password&amp;quot; field is optional if the &#039;New user password&#039; setting on the upload screen is set to &amp;quot;Create password if needed and send via email&amp;quot;  but is required if the setting to &amp;quot;Field required in file&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If included, values should meet the requirements for the site&#039;s [[Site_policies#Password_policy|Password policy]]. &lt;br /&gt;
&lt;br /&gt;
To force password change for a particular user, set the password field to &#039;&#039;&#039;changeme&#039;&#039;&#039;. If omitted, a password will be generated for each user (during the next Cron job) and welcome e-mails sent out. The text for the welcome e-mail is in the language settings in &#039;&#039;Site administration &amp;gt; Language &amp;gt; Language customisation&#039;&#039;  with a String identifier of &#039;newusernewpasswordtext&#039;.&lt;br /&gt;
&lt;br /&gt;
===Optional user fields===&lt;br /&gt;
&lt;br /&gt;
Note: Commas within  a field must be encoded as &amp;amp;#44 - the script will decode these back to commas.&lt;br /&gt;
Tip: For Boolean fields with only two values, use &#039;&#039;&#039;0&#039;&#039;&#039; for false and &#039;&#039;&#039;1&#039;&#039;&#039;for true. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To provide values other than the default you can include one or more of these optional user fields:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;institution,department,city,country,lang,auth,timezone,idnumber,icq,phone1,phone2,address,url,description,mailformat,maildisplay,maildigest,htmleditor,autosubscribe,interests&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Most of the these are user profile fields or user preference fields that belong to the user profile and are the filled in the user or at manual creation. Some however require specific formats:&lt;br /&gt;
&lt;br /&gt;
See [[Additional name fields]] for more details. Key things to note are:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;country&#039;&#039;&#039; - use the country TWO LETTER CODE, in upper case, eg AU,ES,GB,US. These are all UPPER CASE. Using &amp;quot;au&amp;quot; or &amp;quot;es&amp;quot; or &amp;quot;USA&amp;quot; as a country code will result in a database error. If you are having trouble working out the two-letter code for a country, you can consult the list of [http://www.iso.org/iso/country_names_and_code_elements country names and code elements] available on the ISO Website. A common error is to use UK for United Kingdom; it should be GB.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;lang&#039;&#039;&#039; - use the two letter (or extended four lettter) code as defined in the Moodle language packs, e.g. en, es, en_us, de, in &#039;&#039;Site administration &amp;gt; Language &amp;gt; Language packs&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;auth&#039;&#039;&#039; - The auth field must be used if the site uses an alternative authentication method, such as LDAP, as otherwise the authentication method will default to manual and users using a different auth method won&#039;t be able to log in. Use the shortname codes defined in Plugins &amp;gt; Authentication for the various types, e.g. manual, nlogin, ldap, cas, mnet, db, none. If you do not include an auth column, then newly created users will be created with the manual account type.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;timezone&#039;&#039;&#039; - Should be in the format as found in the Location settings in terms of Zone/Region, eg. Australia/Sydney, Asia/Kathmandu, Europe/Madrid, etc. The entry is case sensitive so Europe/London will work but europe/london will not.&lt;br /&gt;
&lt;br /&gt;
NOTE: Needed: settings for &#039;&#039;&#039;mailformat&#039;&#039;&#039;,&#039;&#039;&#039;maildisplay&#039;&#039;&#039;,&#039;&#039;&#039;htmleditor&#039;&#039;&#039;,&#039;&#039;&#039;autosubscribe&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;maildigest&#039;&#039;&#039; To prevent users from receiving a large number of emails from courses or forced subscription forums use the &#039;&#039;&#039;maildigest&#039;&#039;&#039;.  The options for this field are 0 = No digest, 1 = Complete digest and 2 = Digest with just subjects.&lt;br /&gt;
&lt;br /&gt;
===Custom profile field names===&lt;br /&gt;
&lt;br /&gt;
These are optional and depend on whether you have created any custom profile fields in your site. The name of the header in file is of the form &#039;profile__field_xxxxx&#039; where xxxx is the unique shortname of custom user profile field name as you created it. &lt;br /&gt;
&lt;br /&gt;
The field name should match the case of the profile field shortname. So, for instance if the shortname of your custom profile field is all upper case, for example, &#039;&#039;DOB&#039;&#039;, then use a header of &#039;&#039;profile_field_DOB&#039;&#039; to match the case, not &#039;&#039;profile_field_dob&#039;&#039;, which will produce a &amp;quot;is not a valid field name&amp;quot; error. Likewise, a mixed case shortname such as &#039;&#039;Dob&#039;&#039; should have a header of &#039;&#039;profile_field_Dob&#039;&#039;. (The exception to this is if the shortname is all lower case, then any case will work in the field header, which is a historical quirk: but best practice is to match the case and you will avoid errors.)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;profile_field_xxxxx&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example&#039;&#039;&#039;: To create a custom field &amp;quot;genre&amp;quot;, you must write a shortname &amp;quot;genre&amp;quot; in the new field, and write &amp;quot;profile_field_genre&amp;quot; in the header of the .csv file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For custom profile fields that are dates, use the ISO standard format YYYY-MM-DD, eg. 2014-06-19 which will then be properly localized in the interfaced. For example, a field called dohire for date of hire, the fields could be:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
username,firstname,lastname,email,profile_field_dohire&lt;br /&gt;
blumbergh,Bill,Lumbergh,blumbergh@example.com,1990-02-19&lt;br /&gt;
pgibbons,Peter,BGibbons,pgibbons@example.com,1996-06-05&lt;br /&gt;
tsmykowski,Tom,Smykowski,tsmykowski@example.com,1970-01-01 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For custom profile fields that are a menu, use the corresponding value in the menu list from field as you defined it. For example: a custom field &#039;corporatedivision&#039; with one of three values &#039;Management&#039;, &#039;Development&#039; or &#039;Training&#039;. Just insert one of those three words (e.g. &#039;Training&#039;) as the value for that field. Eg.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
username,firstname,lastname,email,profile_field_corporatedivision&lt;br /&gt;
blumbergh,Bill,Lumbergh,blumbergh@example.com,Management&lt;br /&gt;
pgibbons,Peter,BGibbons,pgibbons@example.com,Development&lt;br /&gt;
tsmykowski,Tom,Smykowski,tsmykowski@example.com,Training &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Special user change fields===&lt;br /&gt;
&lt;br /&gt;
Three special fields are used for managing user accounts, &#039;&#039;&#039;oldusername&#039;&#039;&#039;, &#039;&#039;&#039;deleted&#039;&#039;&#039; and &#039;&#039;&#039;suspended&#039;&#039;&#039;.  [[#Allow_renames|See below for details]].&lt;br /&gt;
&lt;br /&gt;
===Enrolment fields===&lt;br /&gt;
&lt;br /&gt;
You may optionally enrol users in already existing courses using manual enrolment. Only manual enrolment is done this way; if the manual enrolment method is disabled in a course, then no enrol is done.&lt;br /&gt;
&lt;br /&gt;
You use fields in the upload file of this type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;course1,type1,role1,group1,enrolperiod1,enrolstatus1,course2,type2,role2,group2,enrolperiod2,enrolstatus2&amp;lt;/pre&amp;gt; etc.&lt;br /&gt;
&lt;br /&gt;
Header fields &#039;&#039;&#039;must&#039;&#039;&#039; have a numeric suffix such that type1,role1,group1,enrolperiod1 and enrolstatus1 all apply to course1 for course&#039;&#039;&#039;1&#039;&#039;&#039; to course&#039;&#039;&#039;n&#039;&#039;&#039;. Even if you are just doing one course enrolment, you must still use the numer 1 on the heading name, i.e. course1,role1, etc. Do not use the bare headings without numbers, e.g. course,role, etc as those will generate an error.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;course#&#039;&#039;&#039; is the shortname of the course, if present the user will be enrolled in that course. Do not use the fullname of the course or it will generate an error. This field is the ONLY required field for a succesful enrolment. All the others are optional. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;type#&#039;&#039;&#039; sets the role to be used for the enrolment. A value of 1 is default course role,  2 is legacy Teacher role and 3 is legacy Non-editing Teacher.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;role#&#039;&#039;&#039; may be used to specify roles directly, using either role short name or the role id (numeric names of roles are not supported). Usually you will use the role name that is the shortname of the role as defined in Users &amp;gt;  Permissions &amp;gt; Define roles, eg. student, editingteacher. If the role column is left out, the users will be enroled in the course with the default role, which is normally student.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;group#&#039;&#039;&#039; may be used to assign users to groups in course, using name or id (numeric group names are not supported). NOTE: if the group does not already exist, it will be created.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;enrolperiod#&#039;&#039;&#039; may be used to set the enrolment duration, in days, for each course. If not explicitly set here, all the users will get the duration as set in the Manual enrolment method of the course (which defaults to 0 meaning unlimited.)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;enrolstatus#&#039;&#039;&#039; is optional as by default all newly enrolled users are set to active. If used a value of 1, it will suspend users in the course and if a user is previously set as inactive / suspended then a value of 0 will unsuspend them and make them active again.&lt;br /&gt;
&lt;br /&gt;
=== Cohort membership assignment===&lt;br /&gt;
&lt;br /&gt;
You can assign users to any already existing Cohort by using only the &amp;quot;username&amp;quot; and the &amp;quot;Cohort ID&amp;quot; with just two fields in the file. Note that this is an exception to the usual case where the firstname, lastname and email address of the user are required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;cohort#&#039;&#039;&#039; is the form to use and like enrolment in courses, you have to add a number to each header, so cohort1,cohort2, etc.&lt;br /&gt;
&lt;br /&gt;
Internal cohort id numbers or non-numeric Cohort IDs of existing cohorts must be used; do not use the full name are not allowed. (Note that cohort id is what is usually known elsewhere as the &amp;quot;shortname&amp;quot;.)&lt;br /&gt;
&lt;br /&gt;
Here is a sample CSV file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
username,cohort1,cohort2&lt;br /&gt;
student1,nursing,2016class&lt;br /&gt;
student2,nursing,2014class&lt;br /&gt;
student3,nursing,2014class&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== MNet ===&lt;br /&gt;
&lt;br /&gt;
Existing [[MNet]]users can be added to courses, groups or cohorts as below by using the field header &#039;&#039;&#039;mnethostid&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
#enrolling to courses: username+mnethostid+course required&lt;br /&gt;
#adding to group: username+mnethostid+course+group required&lt;br /&gt;
#adding to cohort: username+mnethostid+cohort required&lt;br /&gt;
#suspending/reviving accounts: username+mnethostid+suspended required&lt;br /&gt;
&lt;br /&gt;
All other operations are ignored. You can not add users, delete them or update them (such as change names or email, profile fields, etc.)&lt;br /&gt;
&lt;br /&gt;
=== Set system roles ===&lt;br /&gt;
Users may also be assigned to already defined system roles, using the shortname of the system role as defined in &#039;&#039;Site administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; for roles with a system context defined.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sysrole1,sysrole2,sysrole3&amp;lt;/code&amp;gt; etc&lt;br /&gt;
&lt;br /&gt;
Users may be uploaded to a system role (usually Manager or Course creator)  by entering the shortname of that role. Other roles can only be uploaded if they have already been assigned in the &#039;system&#039; context. See [[Creating custom roles]]. Multiple roles can be assigned using sysrole2, sysrole3, etc. fields. Note that the number suffix in no way relates to the number suffixes on the enrolment fields. The numbers must go up in sequence starting at 1.&lt;br /&gt;
&lt;br /&gt;
Unassigning system roles&lt;br /&gt;
Users can also be removed from a given system role by entering the shortname of that role prefixed with a minus symbol: &#039;-&#039;. If the user is currently assigned to that role, they are removed from it. If the user is not currently assigned to that system role, the field value is ignored. However, the field value must refer to a system role that does exist on the system, otherwise an error will occur.&lt;br /&gt;
[[File:GlobalRoles1.png|thumb|500px|center|Example of a file for uploading users with global/system roles]]&lt;br /&gt;
&lt;br /&gt;
==Upload user process==&lt;br /&gt;
&lt;br /&gt;
# Create file for uploading&lt;br /&gt;
# Go to &#039;&#039;Site administration &amp;gt; Users &amp;gt; Accounts &amp;gt; Upload users&#039;&#039;&lt;br /&gt;
# Add file to upload&lt;br /&gt;
# Upload users preview - check settings and default user profile settings&lt;br /&gt;
# Upload users preview - click &amp;quot;Upload users&amp;quot;&lt;br /&gt;
# Upload users results - shows list of users, exceptions made in upload and summary of number of users&lt;br /&gt;
# Upload users results - click &amp;quot;Continue&amp;quot;&lt;br /&gt;
# Returns to Upload users screen&lt;br /&gt;
&lt;br /&gt;
==Updating users preview==&lt;br /&gt;
There are various settings to better control the desired upload behaviour. These settings are found on the &amp;quot;Upload users preview&amp;quot; page.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Warning&#039;&#039;&#039;: errors updating existing accounts can affect your users badly. &#039;&#039;&#039;&#039;&#039;Be careful&#039;&#039;&#039;&#039;&#039; when using the options to update.&lt;br /&gt;
&lt;br /&gt;
====Upload type====&lt;br /&gt;
The Upload type specifies how to handle existing accounts.&lt;br /&gt;
&lt;br /&gt;
;Add new only, skip existing users : is the default Moodle upload type. It creates a new user account for each new record in the uploaded file. If an existing username is found in the uploaded file matches an existing username, that record is &#039;&#039;&#039;skipped&#039;&#039;&#039;. By skipping the existing user account, the data in the existing record is not touched (in contrast to the &amp;quot;Add new and update existing users&amp;quot; option) and a second new user account is &#039;&#039;&#039;not&#039;&#039;&#039; created (in contrast to the &amp;quot;Add all, append number to usernames if needed&amp;quot; option). &lt;br /&gt;
&lt;br /&gt;
;Add all, append number to usernames if needed : creates a new user account for each record in the uploaded file. If an existing user account is found, a new account will be created with a number appended to the username. For example, if a user account for username &#039;jsmith&#039; already exists and a new record in the uploaded file contains a record forusername &#039;jsmith&#039; an additional user account is created with a 1 &#039;&#039;&#039;appended&#039;&#039;&#039; to the username to produce user &#039;jsmith1&#039;. &lt;br /&gt;
&lt;br /&gt;
;Add  new and update existing users : creates a new user account for each new user in the upload file. If an existing user account with the same username is found, the account information is &#039;&#039;&#039;updated&#039;&#039;&#039; by the data in the uploaded file. &lt;br /&gt;
;Update existing users only : ignores any new users found in the upload file and updates the user account if a matching username record is found in the uploaded file.&lt;br /&gt;
&lt;br /&gt;
====New user password====&lt;br /&gt;
When creating a new user account Moodle can create a new password (if one is not provided) or require a password in the uploaded file.&lt;br /&gt;
&lt;br /&gt;
;Create password if needed : creates a default password for the new user account if one is not provided in the uploaded file.&lt;br /&gt;
&lt;br /&gt;
;Field required in file : requires that a password be provided in the uploaded file in order. If a password is not provided, an error is generated and the user account is not created.&lt;br /&gt;
&lt;br /&gt;
====Existing user details====&lt;br /&gt;
The Existing user details options are only available when the Upload type allows existing user accounts to be updated. It specifies how Moodle should process user detail information for existing users.&lt;br /&gt;
&lt;br /&gt;
;No changes : ignores user detail data in the uploaded and leaves the existing user account data unchanged.&lt;br /&gt;
;Override with file : overwrites data in the existing user account with the data provided in the uploaded file.&lt;br /&gt;
;Override with file and defaults : overwrites data in the existing user account with data provided in the uploaded file and fills in the default values for existing user details when no data is provided in the uploaded file.&lt;br /&gt;
;Fill in missing from file and defaults : adds data in the existing user account with data provided in the uploaded file if the field is empty (does not already contain data) and fills in the default values for existing user details when no data is provided in the uploaded file.&lt;br /&gt;
&lt;br /&gt;
====Existing user password====&lt;br /&gt;
The Existing user password option specifies how to handle password data for existing user accounts when Existing user details is set to overwrite data.&lt;br /&gt;
;No changes : ignores password field in the uploaded user file and leaves the existing user account password untouched&lt;br /&gt;
;Update : overwrites the existing user account password with the password provided in the uploaded file&lt;br /&gt;
&lt;br /&gt;
====Force password change====&lt;br /&gt;
The Force password change option specifies when to tag a user account so that the next login attempt will require the user to change the user&#039;s password.&lt;br /&gt;
&lt;br /&gt;
;Users having a weak password : If the user account has a weak password as defined by the site&#039;s [[Password_policy#Password_policy|Password policy]] then the user will be forced to change the password during the next login attempt. This option is not shown if there the site does not have a [[Password_policy#Password_policy|Password policy]]. &lt;br /&gt;
;None : None of the users in the uploaded file will be forced to change the password during the user&#039;s next login attempt.&lt;br /&gt;
;All : All of the users in the uploaded file will be forced to change the password during the user&#039;s next login attempt.&lt;br /&gt;
&lt;br /&gt;
====Allow renames====&lt;br /&gt;
If the uploaded file contains the special &#039;&#039;&#039;oldusername&#039;&#039;&#039; field, it is possible to rename a user from the &#039;&#039;&#039;oldusername&#039;&#039;&#039; to a new &#039;&#039;&#039;username&#039;&#039;&#039;. The default setting is to &#039;&#039;&#039;not&#039;&#039;&#039; allow renames. Keep in mind that renaming a user will require the user to use the new username when logging in.&lt;br /&gt;
;No : ignores the &#039;&#039;&#039;oldusername&#039;&#039;&#039; field and leaves the existing user account&#039;s username field unchanged.&lt;br /&gt;
;Yes : allows the existing user account&#039;s username to be changed by the data provided in the uploaded file&#039;s username field. The &#039;&#039;&#039;oldusername&#039;&#039;&#039; will be searched for and then updated with the data provided in the username column.&lt;br /&gt;
&lt;br /&gt;
====Allow deletes====&lt;br /&gt;
If the uploaded file contains the &#039;&#039;&#039;deleted&#039;&#039;&#039; special field, it is possible to use the upload file to delete existing user accounts. The default setting is to &#039;&#039;&#039;not&#039;&#039;&#039; allow deletes. Keep in mind that deleting a user account will prevent that user from logging in. As a protection, site administrator user accounts cannot be deleted with this method. &lt;br /&gt;
;No : ignores the &#039;&#039;&#039;deleted&#039;&#039;&#039; special field in the uploaded file and leaves the existing user account unchanged&lt;br /&gt;
;Yes : allows the existing user account to be deleted when the value of the of the &#039;&#039;&#039;deleted&#039;&#039;&#039; field is 1. &lt;br /&gt;
&lt;br /&gt;
====Allow suspending and activating of accounts====&lt;br /&gt;
If the uploaded file contains the &#039;&#039;&#039;suspended&#039;&#039;&#039; special field, it is possible to use the upload file to either suspend or make active (unsuspend) existing user accounts. The default setting is to allow suspending/activating of existing user accounts. Keep in mind that suspending an existing user account will prevent that user from logging in. &lt;br /&gt;
;Yes : allows the existing user account to be suspended when the value of the of the &#039;&#039;&#039;suspended&#039;&#039;&#039; field is 1. &lt;br /&gt;
;No : ignores the &#039;&#039;&#039;suspended&#039;&#039;&#039; special field in the uploaded file and leaves the existing user account status unchanged.&lt;br /&gt;
&lt;br /&gt;
====Prevent email address duplicates====&lt;br /&gt;
It is possible, but &#039;&#039;&#039;not&#039;&#039;&#039; recommended to upload users with duplicate email addresses. By default, uploading users with duplicate email addresses is prevented. To allow duplicate email addresses, go to Site administration ► Plugins ► Authentication ► Manage authentication. You can tick &amp;quot;Allow accounts with same email&amp;quot;. Then on the upload users screen you will be allowed to change the &amp;quot;Prevent email address duplicates&amp;quot; setting. &lt;br /&gt;
&lt;br /&gt;
However, doing this is not recommended for file uploads. Test thoroughly any user uploads before implementing.&lt;br /&gt;
&lt;br /&gt;
For more info, see the [[Managing_authentication#Allow_accounts_with_same_email|Managing authentication]] docs page&lt;br /&gt;
;Yes : prevents user accounts from being created from the uploaded if an existing user account already has the same email address as found in the uploaded file&#039;s  &#039;&#039;&#039;email&#039;&#039;&#039; column.&lt;br /&gt;
;No : allows user accounts to be created if an existing user account already has the same email address found in the uploaded file&#039;s  &#039;&#039;&#039;email&#039;&#039;&#039; column.&lt;br /&gt;
&lt;br /&gt;
====Standardise usernames====&lt;br /&gt;
Standardise usernames is used by default to convert the username to all lower case and to strip out illegal characters. It is possible to not standardise the usernames; however, doing so is &#039;&#039;&#039;not&#039;&#039;&#039; recommended.&lt;br /&gt;
;Yes : standardises usernames found in the uploaded file before updating existing or creating new user accounts so that the username contains only lowercase letters and numbers.&lt;br /&gt;
;No : skips standardising usernames found in the uploaded file so that the newly created or updated usernames will be exactly as they are in the uploaded file (&#039;&#039;&#039;not recommended&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
For those seeking a more technical explanation, the process for standardising the usernames consists of ensuring the characters are all UTF-8 (fix_utf8) encoded, converting the username to lower case, and then stripping out non-letters/non-number characters (unless &#039;&#039;Site administration &amp;gt; Security &amp;gt; Site policies &amp;gt; Allow extended characters in usernames&#039;&#039; is set on) with something similar to: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;$username = preg_replace(&#039;/[^-\.@_a-z0-9]/&#039;, &#039;&#039;, $username);&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Select for bulk user actions====&lt;br /&gt;
After the uploaded file has finished being processed (all new accounts have been created and existing accounts updated as specified by the previous settings), there is an option to select some of those user accounts to perform additional [[admin/user/user_bulk|bulk user actions]] such as &lt;br /&gt;
*Confirm user accounts created through Email-based self-registration which are not yet confirmed by the user&lt;br /&gt;
*Send a message (requires Messaging to be enabled)&lt;br /&gt;
*Delete user accounts&lt;br /&gt;
*Display a list of users on a page&lt;br /&gt;
*Download user data in text, ODS or Excel file format&lt;br /&gt;
*Force users to change their passwords&lt;br /&gt;
*Add users to a cohort&lt;br /&gt;
&lt;br /&gt;
By default, no users are selected for [[admin/user/user_bulk|bulk user actions]].&lt;br /&gt;
&lt;br /&gt;
;No : No users are selected for [[admin/user/user_bulk|bulk user actions]]&lt;br /&gt;
;New users : Only newly created users are selected for [[admin/user/user_bulk|bulk user actions]]&lt;br /&gt;
;Updated users : Only updated user accounts are selected for [[admin/user/user_bulk|bulk user actions]]&lt;br /&gt;
;All users : All users found (existing updated users and newly created user accounts) in the uploaded file are selected for [[admin/user/user_bulk|bulk user actions]]&lt;br /&gt;
&lt;br /&gt;
===Default values===&lt;br /&gt;
&lt;br /&gt;
You can provide default user values for some fields not included in the uploaded file. Some fields include:&lt;br /&gt;
*Email display&lt;br /&gt;
*Forum auto-subscribe&lt;br /&gt;
*City/town&lt;br /&gt;
*ID number&lt;br /&gt;
*Institution&lt;br /&gt;
*Department&lt;br /&gt;
&lt;br /&gt;
==Upload user results ==&lt;br /&gt;
After accepting the preview settings by clicking on &amp;quot;Upload users&amp;quot;, you should see the the Upload users results screen.&lt;br /&gt;
[[File:Upload users results 2.0.JPG|thumb|center|The results screen; everything went well!]]&lt;br /&gt;
This screen will show you any exceptions or changes that were made to each user in the upload process.   For example if you were updating user information, the updated information will be shown.  Or if a user was not added that record will be highlighted.&lt;br /&gt;
&lt;br /&gt;
The screen will summarize how many users were uploaded or updated, indicate the number of weak passwords and the number of errors.&lt;br /&gt;
&lt;br /&gt;
==Advanced potentials of Upload user==&lt;br /&gt;
===Templates===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Note: This section needs checking and updating if necessary for Moodle 2.0. Please do so and remove this note when finished.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The default values are processed as templates in which the following codes are allowed:&lt;br /&gt;
&lt;br /&gt;
* %l - will be replaced by the lastname&lt;br /&gt;
* %f - will be replaced by the firstname&lt;br /&gt;
* %u - will be replaced by the username&lt;br /&gt;
* %% - will be replaced by the %&lt;br /&gt;
&lt;br /&gt;
Between the percent sign (%) and any code letter (l, f or u) the following modifiers are allowed:&lt;br /&gt;
&lt;br /&gt;
* (-) minus sign - the information specified by the code letter will be converted to lowercase&lt;br /&gt;
* (+) plus sign - the information specified by the code letter will be converted to UPPERCASE&lt;br /&gt;
* (~) tilde sign - the information specified by the code letter will be converted to Title Case&lt;br /&gt;
* a decimal number - the information specified by the code letter will be truncated to that many characters&lt;br /&gt;
&lt;br /&gt;
For example, if the firstname is John and the lastname is Doe, the following values will be obtained with the specified templates:&lt;br /&gt;
&lt;br /&gt;
* %l%f = DoeJohn&lt;br /&gt;
* %l%1f = DoeJ&lt;br /&gt;
* %-l%+f = doeJOHN&lt;br /&gt;
* %-f_%-l = john_doe&lt;br /&gt;
*&amp;lt;nowiki&amp;gt; http://www.example.com/~%u/&amp;lt;/nowiki&amp;gt; results in  &amp;lt;nowiki&amp;gt;http://www.example.com/~jdoe/&amp;lt;/nowiki&amp;gt; (if the username is jdoe or %-1f%-l)&lt;br /&gt;
&lt;br /&gt;
Template processing is done only on default values, and not on the values retrieved from the CSV file.&lt;br /&gt;
&lt;br /&gt;
In order to create correct Moodle usernames, the username is always converted to lowercase. Moreover, if the &amp;quot;Allow extended characters in usernames&amp;quot; option in the Site policies page is off, characters different to letters, digits, dash (-) and dot (.) are removed. For example if the firstname is John Jr. and the lastname is Doe, the username %-f_%-l will produce john jr._doe when Allow extended characters in usernames is on, and johnjr.doe when off.&lt;br /&gt;
&lt;br /&gt;
When the &amp;quot;New username duplicate handling&amp;quot; setting is set to Append counter, an auto-increment counter will be append to duplicate usernames produced by the template. For example, if the CSV file contains the users named John Doe, Jane Doe and Jenny Doe without explicit usernames, the default username is %-1f%-l and New username duplicate handling is set to Append counter, then the usernames produced will be jdoe, jdoe2 and jdoe3.&lt;br /&gt;
&lt;br /&gt;
===Deleting accounts===&lt;br /&gt;
&lt;br /&gt;
If the &#039;&#039;&#039;deleted&#039;&#039;&#039; field is present, users with value 1 for it will be deleted. In this case, all the fields may be omitted, except for &#039;&#039;&#039;username&#039;&#039;&#039;. After uploading the file, be sure to change the &amp;quot;Upload type&amp;quot; to &amp;quot;Update existing users only&amp;quot; and the &amp;quot;Allow deletes&amp;quot; option to &amp;quot;Yes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Tip:&#039;&#039;  A similar field is available for &#039;&#039;&#039;suspended&#039;&#039;&#039;. This enables a user account to be temporarily disabled rather than completely removed.&lt;br /&gt;
&lt;br /&gt;
Deleting and uploading accounts could be done with a single CSV file. For example, the following file will add the user Tom Jones and delete the user reznort:&lt;br /&gt;
&lt;br /&gt;
 username,firstname,lastname,deleted&lt;br /&gt;
 jonest,Tom,Jones,0&lt;br /&gt;
 reznort,,,1&lt;br /&gt;
&lt;br /&gt;
==Encoding file format==&lt;br /&gt;
On the initial Upload user screen, you may select the file encoding format from a pull down list.  These include UTF-8 (the default), ASCII,  ISO-8859-1 to ISO-8859-11 or any one of over 36 formats.&lt;br /&gt;
&lt;br /&gt;
==Hints==&lt;br /&gt;
&lt;br /&gt;
===Spreadsheet===&lt;br /&gt;
&lt;br /&gt;
If you use a spreadsheet program such as Excel to create your .csv file, check the resulting output in a text editor before you upload it.  It is possible to get trailing commas on each line from an empty field if you have added and deleted columns of information prior to saving the final file. Also check the character encoding. A csv file is a simple text file (ASCII or Unicode) that can be used to upload user accounts.&lt;br /&gt;
&lt;br /&gt;
Excel translates passwords that begin with - (minus) or + (plus) as zero. Even when saving as .csv and saying &amp;quot;Yes&amp;quot; to &amp;quot;Keep this format, and leave out any incompatible features.&amp;quot; Check for this before uploading, as a zero halts the upload process.&lt;br /&gt;
&lt;br /&gt;
If you use a formula in Excel to create fields (for example, the concatenate function to create a user name), then remember to copy the cells with the formula and use special paste with values checked to make them into an acceptable data for a csv file.&lt;br /&gt;
&lt;br /&gt;
The upload will also fail if you have trailing spaces at the end of your data fields. Often, this can not be removed with a simple Find &amp;quot; &amp;quot; and Replace with &amp;quot;&amp;quot;. If information has been copied from web sources than it is possible to include non-breaking spaces which will prevent your upload from being completed correctly. To find these invisible spaces, use the Find and Replace function in Excel. In the find field, hold alt and type 0160. Leave the replace field blank. &lt;br /&gt;
&lt;br /&gt;
===Field size limits===&lt;br /&gt;
Some fields have maximum character lengths, as defined in the database fields.  Typically the file will import to the preview list screen but not finish the process. Turn on debug to see the fields that are too long. The error will be &amp;quot;User not added - error&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The sizes of some common fields, in number of characters, are currently (3.2):&lt;br /&gt;
&lt;br /&gt;
*username - 100 	 &lt;br /&gt;
*password - 255 	 &lt;br /&gt;
*idnumber - 255 	 &lt;br /&gt;
*firstname - 100 	 &lt;br /&gt;
*lastname - 100 	 &lt;br /&gt;
*lastnamephonetic - 255 	 &lt;br /&gt;
*firstnamephonetic - 255 	 &lt;br /&gt;
*middlename - 255 	 &lt;br /&gt;
*alternatename - 255 &lt;br /&gt;
*institution -  255 	 &lt;br /&gt;
*department - 255 	 &lt;br /&gt;
*address - 255 	 &lt;br /&gt;
*city - 120 	 &lt;br /&gt;
*icq -15 	 &lt;br /&gt;
*skype - 50 	 &lt;br /&gt;
*yahoo - 50 	 &lt;br /&gt;
*aim - 50&lt;br /&gt;
*msn - 50 	 &lt;br /&gt;
*phone1 - 20 	 &lt;br /&gt;
*phone2  - 20&lt;br /&gt;
&lt;br /&gt;
===All user fields listed here===&lt;br /&gt;
:All the user fields that are valid in an upload file are listed below, except for any custom fields you may have created (for which see below.)&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;firstname,lastname,username,email,password,auth,idnumber,institution,department,city,country,timezone,lang,mailformat,maildisplay,maildigest,htmleditor,autosubscribe,skype,msn,aim,yahoo,icq,phone1,phone2,address,url,description,descriptionformat,interests,oldusername,deleted,suspended,alternatename,lastnamephonetic,firstnamephonetic,middlename&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
The enrolments into courses information are &amp;lt;pre&amp;gt;course1,type1,role1,group1,enrolperiod1,enrolstatus1&amp;lt;/pre&amp;gt; &lt;br /&gt;
where each enrolment is grouped by number.&lt;br /&gt;
&lt;br /&gt;
===Capabilities===&lt;br /&gt;
&lt;br /&gt;
You may wish to create a limited role to allow some users access to this function. Create a role and assign to the user at the system/site level with the following capabilities allowed&lt;br /&gt;
* moodle/site:uploadusers&lt;br /&gt;
* moodle/role:assign&lt;br /&gt;
* In &#039;Allow role assignments&#039; permit this new role to assign the required roles&lt;br /&gt;
&lt;br /&gt;
In particular, don&#039;t forget the moodle/role:assign capability (even if these users have it in the courses they will be enrolling users in - it won&#039;t work).&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [http://youtu.be/PFGLZnuu_JI Adding users by using a CSV in Moodle]  MoodleBites video on YouTube&lt;br /&gt;
*[[Flat file]] enrolment&lt;br /&gt;
* [[User profile fields]] for details of how to include data about custom user profile fields in the upload users file&lt;br /&gt;
* [[Upload courses]]&lt;br /&gt;
&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=36851 Can I auto enroll from Excel?]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=97903 Uploading users to custom roles]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=181259 User upload option: standardise usernames]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=144569 Matriculacion con flat file csv] - discussion in Spanish&lt;br /&gt;
&lt;br /&gt;
[[fr:Importer des utilisateurs]]&lt;br /&gt;
[[ja:ユーザのアップロード]]&lt;br /&gt;
[[de:Nutzerliste hochladen]]&lt;br /&gt;
[[es:Subir usuarios]]&lt;/div&gt;</summary>
		<author><name>Cathkdsc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Using_Forum&amp;diff=127598</id>
		<title>Using Forum</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Using_Forum&amp;diff=127598"/>
		<updated>2017-08-03T17:11:30Z</updated>

		<summary type="html">&lt;p&gt;Cathkdsc: /* Using groups with forums */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Forum}}&lt;br /&gt;
This page contains extra information for students and teachers about using the forum activity.&lt;br /&gt;
&lt;br /&gt;
==For all users==&lt;br /&gt;
===Permalinks===&lt;br /&gt;
&lt;br /&gt;
A permalink allows you to link directly to a specific forum post so you can share it easily with others. You will see the permalink option when clicking to reply to a post. If you click the permalink &#039;&#039;(1)&#039;&#039;, it is highlighted to the side &#039;&#039;(2)&#039;&#039; and you will have a particular web address &#039;&#039;(3)&#039;&#039; which you can then copy and paste to use elsewhere:&lt;br /&gt;
&lt;br /&gt;
[[File:permalinkexample.png|thumb|center|600px|Linking directly to a single post]]&lt;br /&gt;
&lt;br /&gt;
===Forum preferences===&lt;br /&gt;
Users can set their forum preferences via Preferences in the user menu top right. (Defaults for each of these settings can be set by an administrator in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Accounts &amp;gt; User default preferences&#039;&#039;.)&lt;br /&gt;
&lt;br /&gt;
===Track read and unread forum posts===&lt;br /&gt;
*Access the Preferences page from the user menu and select &#039;Forum preferences&#039;.&lt;br /&gt;
* For &#039;Forum tracking&#039;, choose &#039;&#039;Yes: highlight new posts for me&#039;&#039; and if the forum administrator has set the &#039;Read tracking for this forum?&#039; to On or Optional then unread posts will be highlighted for you:&lt;br /&gt;
{|&lt;br /&gt;
|[[File:forumtracking1.png|thumb|296px|left|Unread posts alert]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The posts will be highlighted in the following places:&lt;br /&gt;
&lt;br /&gt;
* Dashboard&lt;br /&gt;
* Course page&lt;br /&gt;
* Within the forum itself&lt;br /&gt;
* In forum discussion threads&lt;br /&gt;
{|&lt;br /&gt;
|[[File:forumtracking2.png|thumb|447px|left|Click to mark as read]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Only posts made in the last two weeks are tracked as read or unread. Older posts are all reported as read.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;New in 3.2:&#039;&#039;&#039; You can also choose to have any forum post notifications automatically marked as read (so they don&#039;t appear in the Unread list.) Some people find this confusing and prefer to keep them as unread:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|[[File:forumnotificationsread.png|thumb|left|600px|Forum post notification options]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Display options===&lt;br /&gt;
[[Image:forumviewoptions.jpg|thumb|Reply display options]]A discussion thread may be displayed in four ways. Use the pull down menu at the top of each forum discussion to select a display type.&lt;br /&gt;
&lt;br /&gt;
* Display replies flat, with oldest first&lt;br /&gt;
* Display replies flat, with newest first - The discussion will be displayed in one line and the chronological order from the newest to the oldest.  This is the same as the above, just a different sort order.&lt;br /&gt;
* Display replies in threaded form - Only the post starting the discussion will be displayed in its full form; replies will be reduced to the headlines (including information about its author and date of release) and organised chronologically; moreover, replies will be shifted towards the right so that only replies to the same post were in the same line.&lt;br /&gt;
* Display replies in nested form - All posts are displayed in their full forms; replies will be reduced to the headlines (including information about its author and date of release) and organised chronologically; moreover, replies will be shifted towards the right so that only replies to the same post were in the same line.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| [[Image:Forum Flat form mu.png|thumb|Flat Forum discussion, example from middle]]&lt;br /&gt;
| [[Image:Forum threaded form mu.png|thumb|Posts in threaded form]]&lt;br /&gt;
| [[Image:Forum nested form mu.png|thumb|&amp;quot;Nested reply example&amp;quot;]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Forum posting===&lt;br /&gt;
&lt;br /&gt;
The default content of &#039;&#039;&#039;Subject&#039;&#039;&#039; is usually &#039;Re: &amp;lt;the name of the &#039;parent&#039; post&amp;gt;&#039;. You can change it though. &lt;br /&gt;
&lt;br /&gt;
==== Adding images, sound and video ====&lt;br /&gt;
&lt;br /&gt;
*When an image is &amp;quot;attached&amp;quot; as a file to a forum message, it is immediately displayed full size after the message (i.e. no need to click on an attachment).  This an excellent way of sharing images without having to go through the process of uploading them as files and linking them from within web pages. &lt;br /&gt;
*Images may be dragged and dropped into the box as well as uploading via the &amp;quot;add&amp;quot; link and the [[File picker]].&lt;br /&gt;
*If multimedia filters are enabled, a sound file (mp3) or accepted video file can be attached and it will be embedded into the forum post in an appropriate player.&lt;br /&gt;
&lt;br /&gt;
====Post editing time limit====&lt;br /&gt;
Once a post has been made, students can go back and edit it within  set time limit. This is usually 30 minutes and is set by an administrator in &#039;&#039;Site administration &amp;gt; Security &amp;gt; [[Site policies]]&#039;. Note that teachers can always edit their posts.&lt;br /&gt;
&lt;br /&gt;
====Moving between forum threads====&lt;br /&gt;
&lt;br /&gt;
Links top and bottom left and right (where applicable) take you to the previous and next forum discussion in a list:&lt;br /&gt;
&lt;br /&gt;
[[File:navigateforums1.png|thumbnail|center|500px]]&lt;br /&gt;
&lt;br /&gt;
===Post a copy to all groups===&lt;br /&gt;
&lt;br /&gt;
Teachers and other users with the [[Capabilities/mod/forum:canposttomygroups|capability to post in all groups they have access to]] can post the same message once only to all groups by selecting &#039;All participants&#039; and clicking the Add a new discussion topic button:&lt;br /&gt;
&lt;br /&gt;
[[File:forumdiscussiongroup1.png]]&lt;br /&gt;
&lt;br /&gt;
Once they have typed the post, they tick the box &#039;Post a copy to all groups&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:forumdiscussiongroup2.png]]&lt;br /&gt;
&lt;br /&gt;
When saved, the post will be reproduced for each group:&lt;br /&gt;
&lt;br /&gt;
[[File:forumdiscussiongroup3.png]]&lt;br /&gt;
&lt;br /&gt;
===Reply to posts via email===&lt;br /&gt;
&lt;br /&gt;
If enabled by an administrator (in [[Mail configuration]]), you can reply to forum posts via email.&lt;br /&gt;
&lt;br /&gt;
# Click the Reply by email link in the email. You will see a special unique email address to send your reply to.&lt;br /&gt;
# Reply using the email address provided. &#039;&#039;&#039;IMPORTANT: Make sure you remove the original email content so that your forum post does not contain the quoted text.&#039;&#039;&#039;&lt;br /&gt;
# You should receive an email saying your reply has been successfully posted. &lt;br /&gt;
# Your post now appears in the forum.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| [[File:forumemailreplylatest.png|thumb|400px|(1) Click to reply by email]]&lt;br /&gt;
| [[File:specialemailaddress.png|thumb| 300px|(1a) Note the special email address to reply to]]&lt;br /&gt;
| [[File:forumemailreply2.png|thumb|400px|(2) Type and send your reply]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
| [[File:forumemailreply3.png|thumb|400px|(3) The success message]]&lt;br /&gt;
| [[File:forumemailreply4.png|thumb|400px| (4) Your reply is posted to the forum]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:navigateforums1.png|thumbnail|center|500px]]&lt;br /&gt;
&lt;br /&gt;
===Exporting forum posts===&lt;br /&gt;
Users with the &#039;&#039;mod/forum:exportdiscussion&#039;&#039; or &#039;&#039;mod/forum:exportownpost&#039;&#039; or &#039;&#039;mod/forum:exportpost&#039;&#039; permission can export forum posts to any portfolio the administrator has enabled:&lt;br /&gt;
&lt;br /&gt;
[[File:Exportforum.png]]&lt;br /&gt;
&lt;br /&gt;
See the discussion [https://moodle.org/mod/forum/discuss.php?d=320382 Printing/exporting forum discussions] for further details.&lt;br /&gt;
&lt;br /&gt;
==For teachers==&lt;br /&gt;
&lt;br /&gt;
===Pinned posts===&lt;br /&gt;
&lt;br /&gt;
When adding a new discussion as a teacher, you can make it &#039;sticky&#039; by ticking the box to &#039;pin&#039; the discussion to the top of the list. Any forum discussions which come after that will appear underneath this pinned post. If you later untick the box to &#039;unpin&#039; it, it will display as a regular forum discussion, moving down the list when others are posted.&lt;br /&gt;
&lt;br /&gt;
[[File:pinnedpostexample.png]]&lt;br /&gt;
&lt;br /&gt;
===&#039;Send forum post notifications with no editing time delay&#039;===&lt;br /&gt;
&lt;br /&gt;
Teachers (and others with the [[Capabilities/moodle/course:manageactivities|capability to manage course activities]]) will see this option when posting to a forum. Ticking this box will send a notification to everyone subscribed to that forum with no editing time delay. (Users normally have 30 minutes to edit their posts.)&lt;br /&gt;
&lt;br /&gt;
Note: For users who have enabled email digests in their forum preferences, the notification is NOT sent separately from other forum post notifications.&lt;br /&gt;
&lt;br /&gt;
=== Display period ===&lt;br /&gt;
&lt;br /&gt;
Teachers (and others with the capability [[Capabilities/mod/forum:viewhiddentimedposts|mod/forum:viewhiddentimedposts]]) can set a display period of a date and time for the forum post to appear.&lt;br /&gt;
&lt;br /&gt;
[[File:timedposts.png]]&lt;br /&gt;
&lt;br /&gt;
Note:  Timed forum posts was included in previous versions of Moodle as an experimental feature. In Moodle 3.1 onwards it is enabled by default for new installations. For sites upgrading from a previous version, it may be enabled via &#039;&#039;Site administration &amp;gt; Plugins &amp;gt; Activity modules &amp;gt; Forum&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Locking a discussion===&lt;br /&gt;
{{New features}}&lt;br /&gt;
&lt;br /&gt;
Forum threads may  be automatically  locked after a certain period of inactivity. This is done from the setting &#039;Discussion locking&#039; when creating or editing a new forum. &lt;br /&gt;
&lt;br /&gt;
*A period from a day to a year may be selected. The default is for discussions not to be locked.&lt;br /&gt;
*Watch the screencast [https://youtu.be/M9ZxCq50hiQ Discussion locking] to see a demonstration.&lt;br /&gt;
*Teachers and other users with the [[Capabilities/mod/forum:canoverridediscussionlock|capability to override locked discussions]] can unlock discussions simply by posting a reply.&lt;br /&gt;
&lt;br /&gt;
===Moving a discussion===&lt;br /&gt;
&lt;br /&gt;
Teachers and other users with the [[Capabilities/mod/forum:movediscussions|capability to move discussions]] can move a discussion to any other forum in the course for which they have appropriate rights.&lt;br /&gt;
# Click on the arrow in the &#039;Move this discussion to...&#039; dropdown menu in the top right corner of the page and select a destination forum.&lt;br /&gt;
# Click the Move button.&lt;br /&gt;
&lt;br /&gt;
Note: Moving a forum post will display incorrect results in the [[Participation_report|course participation report]] for the affected forums. For example, take a student who posted in forum A and had their post moved to forum B. In the course participation report the student will still be listed has having made a post in forum A, but will not be listed as having made a post yet in forum B.&lt;br /&gt;
&lt;br /&gt;
Note: Discussion subscriptions are retained when a post is moved.&lt;br /&gt;
&lt;br /&gt;
===Splitting a discussion===&lt;br /&gt;
&lt;br /&gt;
Teachers and other users with the [[Capabilities/mod/forum:splitdiscussions|capability to split discussions]] can split a discussion thread. Splitting a discussion means that beginning with the post selected and going to the end of that sub-thread, the posts are cut from the current discussion topic and put into a newly created discussion topic. If discussion has strayed away from the original topic, splitting the discussion can provide new attention and space for the tangent discussion while keeping the original discussion on topic.&lt;br /&gt;
&lt;br /&gt;
# Click the link &#039;Split&#039; in the forum post&lt;br /&gt;
# Enter a new discussion name (optional)&lt;br /&gt;
# Click the Split button&lt;br /&gt;
&lt;br /&gt;
Note: Discussion subscriptions are NOT retained when a post is split.&lt;br /&gt;
&lt;br /&gt;
===Using groups with forums===&lt;br /&gt;
&#039;Group mode&#039; available from the Common module settings has three options. (Note that you must have groups in your course to use this feature.)&lt;br /&gt;
&lt;br /&gt;
If the group mode is set to &#039;&#039;&#039;separate groups&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
* Teachers are given the option of adding a new discussion topic for all participants or for a selected group. If a teacher adds a new discussion topic for a selected group, then only group members can reply to it. &lt;br /&gt;
* Students can only start discussions for their own group.&lt;br /&gt;
* Students can only reply to discussions started by other group members or discussions for their own group started by a teacher.&lt;br /&gt;
&lt;br /&gt;
If the group mode is set to &#039;&#039;&#039;visible groups&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
* Teachers are given the option of adding a new discussion topic for all participants or for a selected group. If a teacher adds a new discussion topic for a selected group, then only group members can reply to it.&lt;br /&gt;
* Students can only start discussions for their own group.&lt;br /&gt;
* Students can only reply to discussions started by other group members or teachers.&lt;br /&gt;
&lt;br /&gt;
Teachers, and other users with the capability [[Capabilities/moodle/site:accessallgroups|moodle/site:accessallgroups]] set to allow, can view and post in all forum discussions, regardless of the group mode setting.&lt;br /&gt;
&lt;br /&gt;
Where visible groups are used, the user&#039;s own groups will be shown first in the list, followed by other groups:&lt;br /&gt;
&lt;br /&gt;
[[File:mygroupsfirst.png]]&lt;br /&gt;
&lt;br /&gt;
Note: Single simple discussions cannot be set to separate groups (as this feature is not implemented). Instead, a standard forum should be used. If required, a permissions override may be set to prevent students from starting new discussions.&lt;br /&gt;
For teachers who have access to all or several groups in a forum, this setting allows them post the same message once only to all groups.&lt;br /&gt;
&lt;br /&gt;
Where teacher have access to several groups, they can post the same message once only to all the groups they have access to by selecting &#039;All participants&#039; and clicking the Add a new discussion topic button:&lt;br /&gt;
&lt;br /&gt;
[[File:forumdiscussiongroup1.png]]&lt;br /&gt;
&lt;br /&gt;
Once they have typed the post, they tick the box &#039;Post a copy to all groups&#039;:&lt;br /&gt;
&lt;br /&gt;
[[File:forumdiscussiongroup2.png]]&lt;br /&gt;
&lt;br /&gt;
When saved, the post will be reproduced for each group:&lt;br /&gt;
&lt;br /&gt;
[[File:forumdiscussiongroup3.png]]&lt;br /&gt;
&lt;br /&gt;
===Ideas for using forums===&lt;br /&gt;
&lt;br /&gt;
Ask yourself &lt;br /&gt;
&lt;br /&gt;
# you wish to have involvement in the forum or if you want the students to lead and own the space&lt;br /&gt;
# you want the forum to add value to the face to face environment or have a life of its own in its own right outside the lecture theatre/classroom or seminar room&lt;br /&gt;
# you are prepared to make appropriate contributions to the discussion in order to: &lt;br /&gt;
## encourage discussion if students are quiet&lt;br /&gt;
## help shape ideas if students begin to wander off-task&lt;br /&gt;
## your role will be defined as discussions/a course progresses &lt;br /&gt;
## you will explicitly but gradually relinquish control of the discussions&lt;br /&gt;
## you will encourage and support learners to share control of discussions(for example you might ask a learner/group of learners to summarise contributions to a discussion thread/topic or you might ask learners to initiate discussion topics)&lt;br /&gt;
 (WIP)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[de: Forum nutzen]]&lt;br /&gt;
[[fr:Afficher un forum]]&lt;br /&gt;
[[ja:フォーラムの閲覧]]&lt;br /&gt;
[[es:Usando Foro]]&lt;/div&gt;</summary>
		<author><name>Cathkdsc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Cohort_sync&amp;diff=127572</id>
		<title>Cohort sync</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Cohort_sync&amp;diff=127572"/>
		<updated>2017-06-15T11:37:24Z</updated>

		<summary type="html">&lt;p&gt;Cathkdsc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Enrolment}}&lt;br /&gt;
==About cohort sync==&lt;br /&gt;
Cohort sync is for automatically enrolling members of a cohort in a course. If a user is added or removed from the cohort, they are automatically enrolled or unenrolled respectively. In other words, cohort sync synchronises cohort membership with course enrolment.&lt;br /&gt;
&lt;br /&gt;
==Enabling cohort sync==&lt;br /&gt;
&lt;br /&gt;
To use cohort sync, it must be enabled by an administrator in &#039;&#039;Site administration &amp;gt; Plugins &amp;gt; Enrolments &amp;gt; Manage enrol plugins&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Enrolling a cohort in a course==&lt;br /&gt;
&lt;br /&gt;
To enrol a cohort in a course&lt;br /&gt;
&lt;br /&gt;
# Go to &#039;&#039;Course administration &amp;gt; Enrolment methods&#039;&#039; and select  &#039;Cohort sync&#039; in the dropdown menu.&lt;br /&gt;
# Choose the required cohort and then click the &#039;Add method&#039; button.&lt;br /&gt;
&lt;br /&gt;
Teachers can add cohorts to courses by default but a manager or admin can hide certain cohorts from teachers by unchecking the &#039;Visible&#039; box in the Cohort settings or by clicking the &#039;eye&#039; icon on the Cohorts screen.&lt;br /&gt;
&lt;br /&gt;
[[File:enrolmentmethods29.png|thumb|center|300px]]&lt;br /&gt;
&lt;br /&gt;
Enrolling cohorts this way means that if members are added or removed from the cohort they are added or removed in the course too - ie, enrolment is synchronised.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|[[File:cohort29.png|thumb|center|500px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[File:cohortcreatenewgroup.png]]&lt;br /&gt;
&lt;br /&gt;
When synchronising a cohort it is also possible to automatically add all cohort members to the group.  A new group can also be created when adding the cohort.&lt;br /&gt;
&lt;br /&gt;
===Capabilities===&lt;br /&gt;
The required capabilities for setting up a cohort sync are:&lt;br /&gt;
* moodle/course:enrolconfig in the course context&lt;br /&gt;
* enrol/cohort:config in the course context&lt;br /&gt;
* moodle/cohort:view in the course context&lt;br /&gt;
&lt;br /&gt;
The default &amp;quot;Teacher&amp;quot; (editingteacher) role has all these capabilities.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Cohorts]] for information on how to create a cohort&lt;br /&gt;
* [https://moodle.org/plugins/view.php?plugin=enrol_groupsync Enrolment: Cohort members to group] plugin for users already enrolled via different method&lt;br /&gt;
&lt;br /&gt;
[[de:Einschreibung über globale Gruppen]]&lt;br /&gt;
[[es:Sincronización de cohorte]]&lt;br /&gt;
[[ja:コーホート同期]]&lt;/div&gt;</summary>
		<author><name>Cathkdsc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Workshop_activity&amp;diff=127468</id>
		<title>Workshop activity</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Workshop_activity&amp;diff=127468"/>
		<updated>2017-04-28T13:13:37Z</updated>

		<summary type="html">&lt;p&gt;Cathkdsc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Activities}}&lt;br /&gt;
{{Note|New to Workshop? Try our [[Workshop quick guide]].}}&lt;br /&gt;
Workshop is a powerful peer assessment activity. The documentation on [[Workshop settings]] explains the different options available. &lt;br /&gt;
&lt;br /&gt;
Students submit their own work and then receive a number of submissions from other students which they must assess according to the teacher&#039;s specifications. (They may also assess their own work if the teacher requests this.) Text may be typed directly into Moodle&#039;s editor, or files of any type may be uploaded, as long as others  have the software to view them. See &#039;&#039;&#039;[[Using Workshop]]&#039;&#039;&#039; for details of the phases involved. The teacher can decide whether to show or hide the identities of the students to each other when assessing is taking place.&lt;br /&gt;
&lt;br /&gt;
Two grades are given and appear in the Gradebook: a grade for the student&#039;s own submission and a grade for the quality of their peer assessment skills. See [[Workshop grading strategies]] for more information.&lt;br /&gt;
&lt;br /&gt;
Workshop is primarily a student-focused activity; however, the teacher may guide the students by providing example submissions for them to try out before assessing their peers and at the end of the workshop the teacher may publish some good (or less good) examples.&lt;br /&gt;
&lt;br /&gt;
For a working example of a workshop activity, see the [http://school.demo.moodle.net/course/view.php?id=59 Celebrating Cultures course in the School Demonstration site.] with the username &#039;&#039;teacher&#039;&#039; and password &#039;&#039;moodle.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
https://www.youtube.com/embed/8QypkOcAEaE&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Workshop FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[de:Workshop]]&lt;br /&gt;
[[es:Actividad de taller]]&lt;br /&gt;
[[fr:Atelier]]&lt;/div&gt;</summary>
		<author><name>Cathkdsc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Event_monitoring&amp;diff=127299</id>
		<title>Event monitoring</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Event_monitoring&amp;diff=127299"/>
		<updated>2017-03-30T14:13:24Z</updated>

		<summary type="html">&lt;p&gt;Cathkdsc: /* What is event monitoring? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Course reports}}&lt;br /&gt;
&lt;br /&gt;
==What is event monitoring?==&lt;br /&gt;
*Event monitoring allows admins and teachers to receive notification when certain events happen in Moodle. See [[Events list]] for examples of events and their levels. Note that students may also be allowed to subscribe to rules if they are given the capability &#039;&#039;tool/monitor:subscribe&#039;&#039;. It is not recommended that they be allowed to create or manage rules.&lt;br /&gt;
*To do this, a &#039;rule&#039; needs to be created for the event to be monitored and then a user, such as the admin or teacher will need to subscribe to it to be notified.&lt;br /&gt;
*The rule will specify what the event is and how often it must happen before notification is sent to the subscriber. The notification may be pop-up, email or other chosen methods.&lt;br /&gt;
*A teacher can create a rule from &#039;&#039;Course administration &amp;gt; Reports &amp;gt; Event monitoring rules&#039;&#039; and an administrator can, additionally, create a rule from &#039;&#039;Site administration &amp;gt; Reports &amp;gt; Event monitoring rules.&#039;&#039;&lt;br /&gt;
*You can subscribe to available rules via the user menu &#039;&#039;Preferences &amp;gt; Event monitoring&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
http://youtu.be/YkuK2w1lJnk&lt;br /&gt;
&lt;br /&gt;
==Enabling event monitoring==&lt;br /&gt;
&lt;br /&gt;
Event monitoring is disabled by default because of performance issues. An administrator can enable it from &#039;&#039;Site administration &amp;gt; Reports &amp;gt; Event monitoring rules&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==How to create or manage  a rule==&lt;br /&gt;
&lt;br /&gt;
As a course teacher, go to &#039;&#039;Course administration &amp;gt; Reports &amp;gt; Event monitoring rules&#039;&#039;, or as an admin go to &#039;&#039;Site administration &amp;gt; Reports &amp;gt; Event monitoring rules&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Rule name===&lt;br /&gt;
&lt;br /&gt;
You can call the rule what you like but it should be something others will understand as they may wish to subscribe to the rule you created.&lt;br /&gt;
&lt;br /&gt;
===Area to monitor===&lt;br /&gt;
&lt;br /&gt;
When you select an area to monitor, for example, &#039;&#039;Forum&#039;&#039;, the &#039;Event&#039; drop down menu below will then display the events you can select from.&lt;br /&gt;
&lt;br /&gt;
===Event===&lt;br /&gt;
&lt;br /&gt;
Once an area has been chosen, the events for that area will display here.&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
&lt;br /&gt;
You don&#039;t have to use a description but if you do, it should be something meaningful to others as they may wish to subscribe to the rule you created.&lt;br /&gt;
&lt;br /&gt;
===Notification threshold===&lt;br /&gt;
&lt;br /&gt;
*This means: &#039;&#039;how many times should this event happen before I get notified?&#039;&#039; &lt;br /&gt;
*For example the following setting would mean that if an event happens five times in 30 minutes then Moodle will send you an alert:&lt;br /&gt;
[[File:notificationthreshold.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Notification message===&lt;br /&gt;
&lt;br /&gt;
When creating or editing a rule, you can embed placeholders to add details to notification messages. The use of placeholders is optional; you can use any personalised message, but if you wish to use placeholders, there are examples of use below:&lt;br /&gt;
&lt;br /&gt;
The placeholders that can be used in a message template are as follows:&lt;br /&gt;
{| class=&amp;quot;nicetable&amp;quot;&lt;br /&gt;
! Placeholder&lt;br /&gt;
! What it does&lt;br /&gt;
! Example&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;{link}&#039;&#039;&#039;&lt;br /&gt;
| Direct link to the actual event, eg a forum discussion.&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;http://YourMoodle.com/mod/forum/discuss.php?d=2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;{modulelink}&#039;&#039;&#039;&lt;br /&gt;
| Link to the module where the event has happened, eg a forum&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;http://YourMoodle.com/mod/forum/view.php?id=8&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;{rulename}&#039;&#039;&#039;&lt;br /&gt;
| A name for the rule.&lt;br /&gt;
| Student discussions&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;{description}&#039;&#039;&#039;&lt;br /&gt;
| A description of the rule.&lt;br /&gt;
| I want to receive notifications when there is a large volume of student posts in a discussion.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;{eventname}&#039;&#039;&#039;&lt;br /&gt;
| The name of the event being monitored.&lt;br /&gt;
| Forum post created.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Example 1====&lt;br /&gt;
&lt;br /&gt;
The above example shows the placeholders for a rule to monitor the &#039;&#039;&#039;Forum post created&#039;&#039;&#039; event. The  notification message using these placeholders would  be as follows:&lt;br /&gt;
&lt;br /&gt;
 The rule &#039;&#039;&#039;{rulename}&#039;&#039;&#039;, monitoring the event &#039;&#039;&#039;{eventname}&#039;&#039;&#039;, has just been fulfilled. &lt;br /&gt;
 Click the following link to go to the forum discussion: &#039;&#039;&#039;{link}&#039;&#039;&#039;&lt;br /&gt;
 Rule description: &#039;&#039;&#039;{description}&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The result would display like this:&lt;br /&gt;
&lt;br /&gt;
 The rule Student discussions, monitoring the event Forum post created, has just been fulfilled. &lt;br /&gt;
 Click on the following link to go to the forum discussion: http://YourMoodle.com/mod/forum/discuss.php?d=2 .&lt;br /&gt;
 Rule description: I want to receive notifications when there are a large volume of student posts in a discussion.&lt;br /&gt;
&lt;br /&gt;
====Example 2====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s create a rule called &#039;&#039;&#039;Glossary entries&#039;&#039;&#039; to monitor when a new glossary entry is created:&lt;br /&gt;
&lt;br /&gt;
 The rule &#039;&#039;&#039;{rulename}&#039;&#039;&#039;, monitoring the event &#039;&#039;&#039;{eventname}&#039;&#039;&#039;, has just been fulfilled. &lt;br /&gt;
 Click the following link to go to see the new entry created: &#039;&#039;&#039;{link}&#039;&#039;&#039;&lt;br /&gt;
 Rule description: &#039;&#039;&#039;{description}&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The result would display like this:&lt;br /&gt;
&lt;br /&gt;
 The rule Glossary entries, monitoring the event Entry has been created, has just been fulfilled. &lt;br /&gt;
 Click on the following link to go to see the new entry created: http://YourMoodle.com/mod/glossary/view.php?id=5&amp;amp;mode=entry&amp;amp;hook=1.&lt;br /&gt;
 Rule description: I want to receive notifications when a new glossary entry is created.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; Some events do not have a link.  &#039;&#039;&#039;Course deleted&#039;&#039;&#039; and &#039;&#039;&#039;Course module deleted&#039;&#039;&#039; for example, would not display any link if &#039;&#039;&#039;{link}&#039;&#039;&#039;  or &#039;&#039;&#039;{modulelink}&#039;&#039;&#039; is used.&lt;br /&gt;
&lt;br /&gt;
==How to subscribe to a rule==&lt;br /&gt;
&lt;br /&gt;
*When events are created from &#039;&#039;Site&#039;&#039; or &#039;&#039;Course administration &amp;gt; Reports &amp;gt; Event monitoring rules&#039;&#039;, users who have permission to subscribe to rules have an &#039;Event monitoring&#039; link on their preferences page &lt;br /&gt;
*From here, you can unsubscribe to  any events you are subscribed to already and you can subscribe to new events created by you or others.&lt;br /&gt;
&lt;br /&gt;
[[File:EMSubscriptions.png|thumb|center|500px]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Events list report]]&lt;br /&gt;
&lt;br /&gt;
[[es:Monitoreo de eventos]]&lt;br /&gt;
[[de:Event-Beobachtung]]&lt;/div&gt;</summary>
		<author><name>Cathkdsc</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/32/en/index.php?title=Assign_roles&amp;diff=124034</id>
		<title>Assign roles</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/32/en/index.php?title=Assign_roles&amp;diff=124034"/>
		<updated>2016-06-07T16:13:27Z</updated>

		<summary type="html">&lt;p&gt;Cathkdsc: /* Checking a user&amp;#039;s role assignments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Roles}}&lt;br /&gt;
==Context and roles==&lt;br /&gt;
&lt;br /&gt;
*In Moodle,  apart from the site administrator, users do not normally have a global, site-wide role. In other words, even though you may be a teacher offline, when you are in Moodle you could have a teacher role in the course you teach in but a student role in another course where you are studying for a diploma. There are a few exceptions but this is generally the case.&lt;br /&gt;
*Because of the way Moodle works,assigning roles is done for a particular context. A site and course are examples of two different contexts. When you create a new role or tweak a pre-existing role via &#039;&#039;Administration &amp;gt; Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039;, you are asked in which context(s) you want the role to be assigned:&lt;br /&gt;
[[File:rolecontexttypes.png]]&lt;br /&gt;
&lt;br /&gt;
*Here are some examples of contexts; how to get to the assign roles screen, and when/why you would assign roles here:&lt;br /&gt;
&lt;br /&gt;
===System context===&lt;br /&gt;
*&#039;&#039;Administration &amp;gt; Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign system roles&#039;&#039;&lt;br /&gt;
*Any roles assigned here apply to the whole Moodle site. It makes sense therefore that only roles that need this functionality can be assigned here. The [[Manager]] role and [[Course creator]] role are examples of two such roles. Assigning a teacher or student here would result in their being able to teach/study in every single course on the site, which is not usually desirable. &lt;br /&gt;
*If you really feel your Moodle needs to have teachers or students assigned in the system context, go to the teacher/student role in &#039;&#039;Administration &amp;gt; Site administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Define roles&#039;&#039; and check the &amp;quot;system&amp;quot; box. Then search for and allow the capability [[Capabilities/moodle/course:view|moodle/course:view]]&lt;br /&gt;
&lt;br /&gt;
=====Assigning system roles by CSV=====&lt;br /&gt;
&lt;br /&gt;
Where certain custom roles are applied in the system context, it is possible to upload users to that role in bulk by adding the field &#039;&#039;sysrole1&#039;&#039; (etc) to a CSV file.&lt;br /&gt;
&lt;br /&gt;
[[File:GlobalRoles1.png|thumb|500px|center|sysrole column]]&lt;br /&gt;
&lt;br /&gt;
When previewed, there is a column indicating their system role:&lt;br /&gt;
&lt;br /&gt;
[[File:GlobalRoles2.png|thumb|center|500px|Preview screen]]&lt;br /&gt;
&lt;br /&gt;
Once uploaded, the users are present on the &#039;Assign system roles&#039; screen:&lt;br /&gt;
&lt;br /&gt;
[[File:GlobalRoles3.png|thumb|center|500px|Assign system roles screen]]&lt;br /&gt;
&lt;br /&gt;
See [[Upload users]] for information on adding users to roles via CSV.&lt;br /&gt;
&lt;br /&gt;
===Front page context===&lt;br /&gt;
*&#039;&#039;Administration &amp;gt; Site Administration &amp;gt; Front Page&amp;gt;Users&amp;gt;Permissions&amp;gt;Assigned roles&lt;br /&gt;
*Those with a role in the system context do not need to be assigned a role here as well.&lt;br /&gt;
*However you might want to allow a teacher to manage items on the front page; in this instance, you would assign them the role on the Front page.&lt;br /&gt;
&lt;br /&gt;
===Course Category context===&lt;br /&gt;
*See [[Category enrolments]]&lt;br /&gt;
*Users may be enrolled in the category to save enrolling them in each individual course in that category.&lt;br /&gt;
&lt;br /&gt;
===Course context===&lt;br /&gt;
[[File:enrolusers.png|thumb|Enrol users]]&lt;br /&gt;
* Go to &#039;&#039;Administration &amp;gt; Course administration &amp;gt; Enrolled users&#039;&#039;&lt;br /&gt;
* Click the &amp;quot;Enrol users&amp;quot; button and click those users you wish to enrol&lt;br /&gt;
&lt;br /&gt;
The dropdown menu at the top shows roles for which you are allowed to enrol; typically those users with lower roles than you. See [[Enrolled users]] for more details.&lt;br /&gt;
&lt;br /&gt;
===Block context===&lt;br /&gt;
*(Within the block) &#039;&#039;Administration &amp;gt; Assign roles&#039;&#039;&lt;br /&gt;
*You may wish to assign roles to a block if, for instance you want specific people to see the block but for it to be hidden from others&lt;br /&gt;
&lt;br /&gt;
=== Activity Module context===&lt;br /&gt;
*(Within the activity settings) &#039;&#039;Administration &amp;gt; Locally assigned roles&#039;&#039;&lt;br /&gt;
*An example of this is assigning a student the teacher role locally in an individual activity like a forum so they can moderate their classmates&#039; posts while still retaining the student role in the rest of the course.&lt;br /&gt;
&lt;br /&gt;
===User context===&lt;br /&gt;
&lt;br /&gt;
The user context is used for roles such as mentor, team leader or the [[Parent role]]. The role to be assigned must have &#039;User&#039; ticked as the context type where it is to be assigned.&lt;br /&gt;
&lt;br /&gt;
To assign a user the role of mentor in the context of their mentee, click the mentee&#039;s profile, then Preferences then &#039;Assign roles relative to this user&#039;.&lt;br /&gt;
&lt;br /&gt;
In Moodle 3.1 onwards, if a mentor has lots of mentees, the role of mentor can be assigned to them all in one go as follows:&lt;br /&gt;
&lt;br /&gt;
# Put all mentees in a cohort&lt;br /&gt;
# Go to &#039;&#039;Site administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Assign user roles to cohort&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Hierarchy==&lt;br /&gt;
&lt;br /&gt;
By assigning a role to a user in a certain context, you grant them the permissions contained in that role for the current context and all lower contexts.&lt;br /&gt;
&lt;br /&gt;
The list of contexts in hierarchical order is as follows:&lt;br /&gt;
&lt;br /&gt;
*System (no parent)&lt;br /&gt;
*Front page (parent = system) - &lt;br /&gt;
*Course category (parent = parent category or system)&lt;br /&gt;
*Course (parent = category or system)&lt;br /&gt;
*Module (parent = course or system) &lt;br /&gt;
*Block (parent = course or system)&lt;br /&gt;
*User (parent = system)&lt;br /&gt;
&lt;br /&gt;
Roles can be inherited.  For example if a user is assigned a Teacher role in a specific course category then the user will have this role in ALL courses within the category. Tip: use the override feature in a specific context for exceptions.&lt;br /&gt;
&lt;br /&gt;
Roles will only work if the role assignment is made in the correct context. Some examples: a Teacher role should be assigned to a user in the course or course category context, a Forum moderator for a particular forum should be assigned in that specific forum.&lt;br /&gt;
&lt;br /&gt;
==Assigning someone the role of Site administrator==&lt;br /&gt;
&lt;br /&gt;
*Site administrators are assigned via a special page: &#039;&#039;Administration &amp;gt; Site Administration &amp;gt; Users &amp;gt; Permissions &amp;gt; Site Administrators&#039;&#039;. Select the name from the right and move it over to the left:&lt;br /&gt;
[[File:managesiteadmins.png]]&lt;br /&gt;
*The original (primary) administrator cannot be deleted.&lt;br /&gt;
&lt;br /&gt;
==Checking a user&#039;s role assignments==&lt;br /&gt;
&lt;br /&gt;
To check a user&#039;s role assignments go to their profile page, then under the Administration heading, click on &#039;Preferences&#039;. On the Preferences page, under the &#039;Roles&#039; heading click on &#039;This user&#039;s role assignments&#039;.&lt;br /&gt;
&lt;br /&gt;
==Hidden roles==&lt;br /&gt;
&lt;br /&gt;
If you want to provide users with access to the course, but don&#039;t want them to be visible in the participants list, use the [[Other users]] link in the course administration menu (&#039;&#039;Administration &amp;gt; Course Administration &amp;gt; Users &amp;gt; Other Users&#039;&#039;). Assigning roles here provides course access, and editing rights according to the permissions set for the role assigned without actually enrolling the user in the course. This is similar to the functionality of the &amp;quot;hidden user&amp;quot; check box in previous versions of Moodle.&lt;br /&gt;
&lt;br /&gt;
Note: By default, the only role which can be assigned to other users is the manager role. To enable other roles, such as teacher to be assigned, the capability [[Capabilities/moodle/course:view|moodle/course:view]] should be allowed for the role (see below).&lt;br /&gt;
&lt;br /&gt;
==Enabling teachers to assign the role of teacher==&lt;br /&gt;
&lt;br /&gt;
By default, teachers are only allowed to assign the roles of non-editing teacher, student and guest. To enable teachers to assign the role of teacher:&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 tab &amp;quot;Allow role assignments&amp;quot;.&lt;br /&gt;
#Click the checkbox where the teacher row and column intersect.&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
==Beware of assignments that don&#039;t make sense==&lt;br /&gt;
&lt;br /&gt;
There are many role assignments that do not make sense as the underlying functionality does not exist. Just because you give someone the &amp;quot;right&amp;quot; to do something does not guarantee that the interface or facility actually exists within the context that you have assigned that right. For example, you can assign a user the right to create new categories in the category context. However there is no interface within Moodle to do that (category creation is only available at the system level).&lt;br /&gt;
&lt;br /&gt;
==Multiple assignments==&lt;br /&gt;
&lt;br /&gt;
A significant part of the roles infrastructure is the ability to assign a user into multiple roles (at the same time). The capabilities of each role are merged to produce the effective set of capabilities. For example, a user could be  both a Teacher and Student in the same course. You should be careful to ensure that if you change a user&#039;s role that you remove them from any other roles as required as this will no longer be done automatically.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Creating custom roles]]&lt;br /&gt;
*[[Enrolment]]&lt;br /&gt;
*[[Managing roles]] - for administrators&lt;br /&gt;
*[[Useful things a teacher can do with roles]]&lt;br /&gt;
&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=59900 Discrepancies between Assign Roles lists and Participants list]&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;
&lt;br /&gt;
[[Category:Roles]]&lt;br /&gt;
&lt;br /&gt;
[[de:Rollen zuweisen]]&lt;br /&gt;
[[es:Asignar_roles]]&lt;br /&gt;
[[eu:Rolak_esleitu]]&lt;br /&gt;
[[fr:Attribution des rôles]]&lt;br /&gt;
[[ja:ロールの割り当て]]&lt;/div&gt;</summary>
		<author><name>Cathkdsc</name></author>
	</entry>
</feed>